Question, why does the reshape function has no argument?
JonathanSum opened this issue · comments
JonathanSum commented
Sasha Rush commented
It just turns it into a jax scalar
import jax.numpy as np
np.array([1]).reshape().shape
()
This function could be written in a much more efficient way, just wanted to show it in a non-matrix style.
JonathanSum commented
Thx for answering. But It is just "reshape()" in the code, not "reshape().shape"
Sasha Rush commented
I was just showing that the shape is () after reshape, i.e. scalar