Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndarray or scalar arguments, got <class 'list'> at position 0. #53

Open
atarilover123 opened this issue Mar 30, 2022 · 3 comments
Open

Comments

@atarilover123
Copy link

I'm getting this error on the "initialize model" cell.
UnfilteredStackTrace: TypeError: broadcast_to requires ndarray or scalar arguments, got <class 'list'> at position 0.

@asinghka
Copy link

asinghka commented Mar 31, 2022

I changed

jnp.broadcast_to([last_sample_z], z_vals[..., :1].shape)
to
jnp.broadcast_to(last_sample_z, z_vals[..., :1].shape)

in line 107 of model_utils.py and that fixed it for me.

@CurtinComputing
Copy link

Hi blackz5,
It dose not work for me. Did you try it on the colab?

@asinghka
Copy link

asinghka commented Aug 7, 2022

No, I have run it locally and changed the file as describe above.

@CurtinComputing CurtinComputing mentioned this issue Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants