Skip to content

which version of pytorch #1

@SeekPoint

Description

@SeekPoint

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

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$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions