Skip to content

Commit

Permalink
Update receptive_field.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Fangyh09 authored May 9, 2024
1 parent cdeb9c4 commit 0aeb7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_receptive_field/receptive_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def hook(module, input, output):
receptive_field[m_key]["r"] = 0
receptive_field[m_key]["start"] = 0
else:
raise ValueError("module {} not ok".format(class_name))
raise ValueError("module {} not supported yet".format(class_name))
pass
receptive_field[m_key]["input_shape"] = list(input[0].size()) # only one
receptive_field[m_key]["input_shape"][0] = batch_size
Expand Down

0 comments on commit 0aeb7f8

Please sign in to comment.