layer = tanhLayer('Name',Name)
additionally specifies the optional Name property. 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.
To include a layer in a layer graph, you must specify a nonempty, unique layer name. If you
train a series network with the layer and Name is set to
'', then the software automatically assigns a name to the layer at
training time.
Data Types: char | string
NumInputs — Number of inputs 1 (default)
Number of inputs of the layer. This layer accepts a single input only.
Data Types: double
InputNames — Input names {'in'} (default)
Input names of the layer. This layer accepts a single input only.
Data Types: cell
NumOutputs — Number of outputs 1 (default)
Number of outputs of the layer. This layer has a single output only.
Data Types: double
OutputNames — Output names {'out'} (default)
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.