ElementwiseLayer

ElementwiseLayer[f]

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

ElementwiseLayer["name"]

applies the function specified by "name".

Details and Options

Examples

open all close 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  (1)

Possible Issues  (3)

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