layer= tanhLayer('Name',Name)additionally specifies the optionalNameproperty. For example,tanhLayer('Name','tanh1')creates a tanh layer with the name'tanh1'.
Name—Layer name ''(default) |character vector|string scalar
Layer name, specified as a character vector or a string scalar. ForLayerarray input, thetrainNetwork,assembleNetwork,layerGraph, anddlnetworkfunctions automatically assign names to layers withNameset to''.
Data Types:char|string
NumInputs—Number of inputs 1(default)
This property is read-only.
Number of inputs of the layer. This layer accepts a single input only.
Data Types:double
InputNames—Input names {'in'}(default)
This property is read-only.
Input names of the layer. This layer accepts a single input only.
Data Types:cell
NumOutputs—Number of outputs 1(default)
This property is read-only.
Number of outputs of the layer. This layer has a single output only.
Data Types:double
OutputNames—Output names {'out'}(default)
This property is read-only.
Output names of the layer. This layer has a single output only.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.