Hi,
I have the following problem when run the question duplicate assignment on VSCode connected to ubuntu WSL. The error doesn’t appear when I run the code in the Jupitor?
what’s the reason ?
Blockquote
No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
/home/ala_jabari/miniconda3/lib/python3.9/site-packages/jax/_src/xla_bridge.py:790: UserWarning: jax.host_count has been renamed to jax.process_count. This alias will eventually be removed; please update your code.
warnings.warn(
Traceback (most recent call last):
File “/home/ala_jabari/NLP/NLP_with_Sequance_Models/Question_duplicates/main.py”, line 276, in
training_loop = train_model(Siamese, TripletLoss, train_generator, val_generator)
File “/home/ala_jabari/NLP/NLP_with_Sequance_Models/Question_duplicates/main.py”, line 268, in train_model
training_loop = training.Loop(Siamese(),
File “/home/ala_jabari/miniconda3/lib/python3.9/site-packages/trax/supervised/training.py”, line 294, in init
self.load_checkpoint()
File “/home/ala_jabari/miniconda3/lib/python3.9/site-packages/trax/supervised/training.py”, line 944, in load_checkpoint
matched_slots, _ = fastmath.tree_unflatten(
File “/home/ala_jabari/miniconda3/lib/python3.9/site-packages/trax/fastmath/numpy.py”, line 244, in tree_unflatten
new_t, rest = tree_unflatten(rest, t, copy_from_tree=copy_from_tree)
File “/home/ala_jabari/miniconda3/lib/python3.9/site-packages/trax/fastmath/numpy.py”, line 244, in tree_unflatten
new_t, rest = tree_unflatten(rest, t, copy_from_tree=copy_from_tree)
File “/home/ala_jabari/miniconda3/lib/python3.9/site-packages/trax/fastmath/numpy.py”, line 239, in tree_unflatten
if copy_from_tree is not None and tree in copy_from_tree:
File “/home/ala_jabari/miniconda3/lib/python3.9/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 ‘tuple’