ConstantTimesLayer

ConstantTimesLayer has been phased out in favor of NetGraph.

ConstantTimesLayer[]

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

ConstantTimesLayer[opts]

includes options for initial scaling and other parameters.

Details

  • ConstantTimesLayer[] evaluates to the equivalent NetGraph.

Examples

open allclose all

Basic Examples  (1)

Create a net that multiplies its input by a learnable scaling array:

Options  (1)

"Scaling"  (1)

Specify an initial scaling:

Apply the layer to an input vector:

Wolfram Research (2017), ConstantTimesLayer, Wolfram Language function, https://reference.wolfram.com/language/ref/ConstantTimesLayer.html (updated 2020).

Text

Wolfram Research (2017), ConstantTimesLayer, Wolfram Language function, https://reference.wolfram.com/language/ref/ConstantTimesLayer.html (updated 2020).

CMS

Wolfram Language. 2017. "ConstantTimesLayer." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ConstantTimesLayer.html.

APA

Wolfram Language. (2017). ConstantTimesLayer. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConstantTimesLayer.html

BibTeX

@misc{reference.wolfram_2024_constanttimeslayer, author="Wolfram Research", title="{ConstantTimesLayer}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ConstantTimesLayer.html}", note=[Accessed: 13-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_constanttimeslayer, organization={Wolfram Research}, title={ConstantTimesLayer}, year={2020}, url={https://reference.wolfram.com/language/ref/ConstantTimesLayer.html}, note=[Accessed: 13-November-2024 ]}