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
Execuse me, when I train the model in GPU,I meet this error.Could you help me ?
Traceback (most recent call last):
File "main.py", line 6, in
pipe.train()
File "/workspace/neural-punctuator-main/src/neural_punctuator/wrappers/BertPunctuatorWrapper.py", line 17, in train
self._trainer.train()
File "/workspace/neural-punctuator-main/src/neural_punctuator/trainers/BertPunctuatorTrainer.py", line 106, in train
mask = ((targets == 0) & (np.random.rand(*targets.shape) < .1)) | (targets > 0)
TypeError: and() received an invalid combination of arguments - got (numpy.ndarray), but expected one of:
(Tensor other)
didn't match because some of the arguments have invalid types: (numpy.ndarray)
(Number other)
didn't match because some of the arguments have invalid types: (numpy.ndarray)
The text was updated successfully, but these errors were encountered:
Execuse me, when I train the model in GPU,I meet this error.Could you help me ?
Traceback (most recent call last):
File "main.py", line 6, in
pipe.train()
File "/workspace/neural-punctuator-main/src/neural_punctuator/wrappers/BertPunctuatorWrapper.py", line 17, in train
self._trainer.train()
File "/workspace/neural-punctuator-main/src/neural_punctuator/trainers/BertPunctuatorTrainer.py", line 106, in train
mask = ((targets == 0) & (np.random.rand(*targets.shape) < .1)) | (targets > 0)
TypeError: and() received an invalid combination of arguments - got (numpy.ndarray), but expected one of:
didn't match because some of the arguments have invalid types: (numpy.ndarray)
didn't match because some of the arguments have invalid types: (numpy.ndarray)
The text was updated successfully, but these errors were encountered: