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

TypeError: unsupported operand type #1

Open
adam-hartshorne opened this issue Jul 24, 2023 · 0 comments
Open

TypeError: unsupported operand type #1

adam-hartshorne opened this issue Jul 24, 2023 · 0 comments

Comments

@adam-hartshorne
Copy link

When attempting to run gaussian-process-interpolation example, I get the following error, where it is complaining about the else if check of ts being an empty list.

Traceback (most recent call last):
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/notebooks/gaussian-process-interpolation.py", line 214, in <module>
    ys = jax.vmap(solve)(y0s, subkeys)
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/notebooks/gaussian-process-interpolation.py", line 199, in <lambda>
    lambda y, key: ndp.sde.sde_solve(
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/neural_diffusion_processes/sde.py", line 439, in sde_solve
    elif ts == []:
  File "/home/adam/anaconda3/envs/geo_np/lib/python3.10/site-packages/jax/_src/numpy/array_methods.py", line 260, in deferring_binary_op
    raise TypeError(f"unsupported operand type(s) for {opchar}: "
TypeError: unsupported operand type(s) for ==: 'ArrayImpl' and 'list'
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

1 participant