ElementwiseLayer

ElementwiseLayer[f]

represents a net layer that applies a unary function f to every element of the input tensor.

ElementwiseLayer["name"]

applies the function specified by "name".

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create an ElementwiseLayer that computes Tanh of each input element:

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

Create an ElementwiseLayer that multiplies its input by a fixed constant:

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

Apply the layer to an input vector:

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

Scope  (3)

Applications  (3)

Properties & Relations  (2)

Possible Issues  (3)

See Also

ThreadingLayer  NetChain  NetGraph  NetTrain  SoftmaxLayer  DropoutLayer

Introduced in 2016
(11.0)
| Updated in 2017
(11.2)