We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi I'm trying to run the demo traning: python main.py --config demo.train.config, then got
python main.py --config demo.train.config
++++++++++++++++++++++++++++++++++++++++ Hyperparameters: Hyper lr: 0.015 Hyper lr_decay: 0.05 Hyper HP_clip: None Hyper momentum: 0.0 Hyper l2: 1e-08 Hyper hidden_dim: 200 Hyper dropout: 0.5 Hyper lstm_layer: 1 Hyper bilstm: True Hyper GPU: True DATA SUMMARY END. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ build network... use_char: True char feature extractor: CNN word feature extractor: LSTM use crf: True build word sequence feature extractor: LSTM... build word representation... build char sequence feature extractor: CNN ... build CRF... Epoch: 0/1 Learning rate is setted as: 0.015 Traceback (most recent call last): File "main.py", line 436, in <module> train(data) File "main.py", line 326, in train batch_word, batch_features, batch_wordlen, batch_wordrecover, batch_char, batch_charlen, batch_charrecover, batch_label, mask = batchify_with_label(instance, data.HP_gpu) File "main.py", line 234, in batchify_with_label mask[idx, :seqlen] = torch.Tensor([1]*seqlen) TypeError: mul() received an invalid combination of arguments - got (list), but expected one of: * (Tensor other) didn't match because some of the arguments have invalid types: (list) * (float other) didn't match because some of the arguments have invalid types: (list)
Any suggestion would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
Hi @seanschang , which version is your PyTorch? This toolkit is only available for pytorch 0.3, currently it does not compatible with PyTorch0.4.
Sorry, something went wrong.
Hi @jiesutd, confirmed the source code works for PyTorch 0.3.1 but not 0.4. Thanks!
Thanks for the feedback!
No branches or pull requests
Hi I'm trying to run the demo traning:
python main.py --config demo.train.config
, then gotAny suggestion would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: