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

Running Error #15

Open
yuan-cherish opened this issue Sep 3, 2021 · 0 comments
Open

Running Error #15

yuan-cherish opened this issue Sep 3, 2021 · 0 comments

Comments

@yuan-cherish
Copy link

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)
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