TwoLayerQNN.forward¶
- TwoLayerQNN.forward(input_data, weights)¶
Forward pass of the network.
- 매개변수:
input_data (float | list[float] | np.ndarray | None) – input data of the shape (num_inputs). In case of a single scalar input it is directly cast to and interpreted like a one-element array.
weights (float | list[float] | np.ndarray | None) – trainable weights of the shape (num_weights). In case of a single scalar weight it is directly cast to and interpreted like a one-element array.
- 반환:
The result of the neural network of the shape (output_shape).
- 반환 형식:
np.ndarray | SparseArray