Skip to content

Error in generator。py #40

@hxy-123-coder

Description

@hxy-123-coder

when I run generator.py on colab, errors occurs.
!python '/content/drive/MyDrive/Colab Notebooks/GraphWriter/generator.py' -save S
/content/drive/MyDrive/Colab Notebooks/GraphWriter
Loading Data from data/preprocessed.train.tsv
building vocab
done
Vocab sizes:
src 6343
ent 53343
nerd 8
rel 17
out 11738
graph
Traceback (most recent call last):
File "/content/drive/MyDrive/Colab Notebooks/GraphWriter/generator.py", line 71, in
cpt = torch.load(args.save)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
IsADirectoryError: [Errno 21] Is a directory: 'S'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions