Skip to content

error for googlenet_train.py #2

@fanaiwei

Description

@fanaiwei

when I run googlenet_train.py,when it comes to Epoch 0 batch 781,the result is
Epoch 0 batch 780
Epoch 0 batch 781
Traceback (most recent call last):
File "D:\论文\语义通信github\SemantIC Semantic Interference Cancellation Towards 6G Wireless Communications\SemantIC-main\googlenet_train.py", line 235, in
train(net, train_data, test_data, 20, optimizer, criterion)
File "D:\论文\语义通信github\SemantIC Semantic Interference Cancellation Towards 6G Wireless Communications\SemantIC-main\googlenet_train.py", line 212, in train
im = Variable(im, require_grad=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'require_grad' is an invalid keyword argument for this function

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