Layer

mentality.keras.layers. Layer

Base class of all layers.

Constructor

new Layer()

Source:

Constructor.

Parameters:
Name Type Description
options.name String

Name of layer.

Extends

  • Node

Members

input

Source:

The layer's input.

Methods

(abstract) computeOutputShape()

Source:

Interface function for computing shape of output tensor.

(abstract) countNeurons()

Source:

Interface function for counting number of neurons in layer.

(abstract) countWeights()

Source:

Interface function for counting weights in layer.

setInput(Input) → {Layer}

Source:

Set a layer as an input of this layer.

Parameters:
Name Type Description
Input Layer

Input layer.

Returns:

The object itself.

Type
Layer