ThreadingLayer

ThreadingLayer[f]

represents a net layer that takes two input tensors and applies a binary function f to corresponding tensor elements.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a ThreadingLayer using Times as the function to be threaded:

In[1]:=
Click for copyable input
Out[1]=

Create a ThreadingLayer with the input shape specified:

In[1]:=
Click for copyable input
Out[1]=

Apply the layer to a pair of inputs:

In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Applications  (1)

Possible Issues  (3)

See Also

ElementwiseLayer  NetChain  NetGraph  NetTrain  SoftmaxLayer  DropoutLayer

Introduced in 2017
(11.1)