pub fn _verify_input_and_hidden_shape<D>(input: D, hidden: D) -> boolwhere
D: Dimension,Expand description
verify if the input and hidden dimensions are compatible by checking:
- they have the same dimensionality
- if the the number of dimensions is greater than one, the hidden layer should be square
- the finaly dimension of the input is equal to one hidden dimension