Code Monkey home page Code Monkey logo

hnlg's People

Contributors

shangyusu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hnlg's Issues

no pickle files in the data folder

Hi, it seems there are no pickle files in the data folder, which is required while training the model. Please do confirm if these files are required or not. Thank you

which version of pytorch

###################################

CURRICULUM STATUS: LAYER1

###################################
+----------------+
| TRAINING |
+----------------+
0%| | 0/1310 [00:00<?, ?it/s]/home/ub16hp/ub16_prj/HNLG/src/model.py:734: UserWarning: invalid index of a 0-dim tensor. This will be an error in PyTorch 0.5. Use tensor.item() to convert a 0-dim tensor to a Python number
all_loss += loss.data[0] / de_lengths[d_idx]
/home/ub16hp/ub16_prj/HNLG/src/model.py:738: UserWarning: torch.nn.utils.clip_grad_norm is now deprecated in favor of torch.nn.utils.clip_grad_norm_.
clip_grad_norm(self.encoder_parameters, max_norm)
/home/ub16hp/ub16_prj/HNLG/src/model.py:740: UserWarning: torch.nn.utils.clip_grad_norm is now deprecated in favor of torch.nn.utils.clip_grad_norm_.
clip_grad_norm(self.decoder_parameters, max_norm)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1310/1310 [00:33<00:00, 39.66it/s]
[2018-12-09 03:43:06] Epoch 1: save model...
[2018-12-09 03:43:06] Save model successfully
+----------------+
| TRAINING |
+----------------+
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1310/1310 [00:31<00:00, 41.59it/s]
[2018-12-09 03:43:38] Epoch 2: save model...
[2018-12-09 03:43:38] Save model successfully
+----------------+
| TRAINING |
+----------------+
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1310/1310 [00:32<00:00, 40.93it/s]
[2018-12-09 03:44:10] Epoch 3: save model...
[2018-12-09 03:44:10] Save model successfully
+----------------+
| TRAINING |
+----------------+
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1310/1310 [00:34<00:00, 38.04it/s]
[2018-12-09 03:44:44] Epoch 4: save model...
[2018-12-09 03:44:44] Save model successfully
+----------------+
| TRAINING |
+----------------+
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1310/1310 [00:32<00:00, 40.27it/s]
[2018-12-09 03:45:17] Epoch 5: save model...
[2018-12-09 03:45:17] Save model successfully
###################################

CURRICULUM STATUS: LAYER2

###################################
+----------------+
| TRAINING |
+----------------+
0%| | 0/1310 [00:00<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 150, in
curriculum_layers=N)
File "/home/ub16hp/ub16_prj/HNLG/src/model.py", line 289, in train
max_norm=max_norm
File "/home/ub16hp/ub16_prj/HNLG/src/model.py", line 652, in run_batch
next_decoder_inputs[:, idx] = topi
RuntimeError: expand(torch.cuda.LongTensor{[32, 1, 1]}, size=[32]): the number of sizes provided (1) must be greater or equal to the number of dimensions in the tensor (3)
(.venv) ub16hp@UB16HP:~/ub16_prj/HNLG/src$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.