neuralintents icon indicating copy to clipboard operation
neuralintents copied to clipboard

ValueError on trainin

Open EyuphanMandiraci opened this issue 2 years ago • 7 comments

image

Hello my code and error in the image.

EyuphanMandiraci avatar Dec 20 '22 12:12 EyuphanMandiraci

Same issue. Did you fix it?

alexandruonel79 avatar Dec 25 '22 00:12 alexandruonel79

I got the same problem. Any fixes so far?

uoRetr0 avatar Dec 28 '22 04:12 uoRetr0

I have managed to fix the error by fixing the main.py (neuralintents source file):

Change from tensorflow.keras.optimizers import SGD to from tensorflow.keras.optimizers.legacy import SGD Change training = np.array(training) to training = np.array(training, dtype=object)

The path for the main.py file can be found on the error message.

fredericodeveloper avatar Dec 28 '22 21:12 fredericodeveloper

Thank you very much, this worked for me

uoRetr0 avatar Dec 28 '22 22:12 uoRetr0

I have managed to fix the error by fixing the main.py (neuralintents source file):

Change from tensorflow.keras.optimizers import SGD to from tensorflow.keras.optimizers.legacy import SGD Change training = np.array(training) to training = np.array(training, dtype=object)

The path for the main.py file can be found on the error message.

this worked for me too ty

FantasyPvP avatar Jan 07 '23 16:01 FantasyPvP

Please help, im having this error but idk how to edit the package, like I want to implement the fix but idk how

IceK1203 avatar Apr 11 '23 16:04 IceK1203

I have managed to fix the error by fixing the main.py (neuralintents source file):

Change from tensorflow.keras.optimizers import SGD to from tensorflow.keras.optimizers.legacy import SGD Change training = np.array(training) to training = np.array(training, dtype=object)

The path for the main.py file can be found on the error message.

how do I implement the changes and download the updated package??

IceK1203 avatar Apr 11 '23 16:04 IceK1203