You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the current shape Info for the Kernel object is stored inside an ndarray in the form like shape1 = ndarray<tf.Tensor([1024 2], shape=(2,), dtype=int64)>, there is currently error like #10, then there is possibility that there are chained problems caused by this shape evaluation that also leads to mis-evaluation on the dimensionality, etc. Shapes like ndarray<tf.Tensor([2], shape=(1,), dtype=int64)> looks more or less like a mistake caused by the nested eval, something like shape1.shape. Overall, need to investigate the places of shape evaluation and make revisions when necessary.
The text was updated successfully, but these errors were encountered:
1. #11;
2. #10;
3. #6
Root problem:
Although I have updated the returned shapes from `out_shape` to
`np.zeros(out_shape)` in `ntk_init_fn`, this only works for
non-activation layers in Neural Tangents like a standard Dense layer.
For activation layers like Relu, it is still calling the `elementwise`
function inside `tf_jax_stax`, where the output shape `input_shape`
should also be revised to `np.zeros(input_shape)` for `eval_on_shapes`
to be able to handle it.
Since the current shape Info for the
Kernel
object is stored inside anndarray
in the form likeshape1 = ndarray<tf.Tensor([1024 2], shape=(2,), dtype=int64)>
, there is currently error like #10, then there is possibility that there are chained problems caused by this shape evaluation that also leads to mis-evaluation on the dimensionality, etc. Shapes likendarray<tf.Tensor([2], shape=(1,), dtype=int64)>
looks more or less like a mistake caused by the nested eval, something likeshape1.shape
. Overall, need to investigate the places of shape evaluation and make revisions when necessary.The text was updated successfully, but these errors were encountered: