ConstantTimesLayer

ConstantTimesLayer[]

represents a layer that multiplies its input by a learnable scaling array.

ConstantTimesLayer[opts]

includes options for initial scaling and other parameters.

Details and Options

Examples

open all close all

Basic Examples  (2)

Create a ConstantTimesLayer:

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

Create a ConstantTimesLayer with an explicit scaling:

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)

Options  (1)

Properties & Relations  (2)

Possible Issues  (1)

Introduced in 2017
(11.1)