Skip to content

Commit a74eade

Browse files
committed
gradient
1 parent 9f23f71 commit a74eade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

memory_network.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def __init__(self, mem_size, color_info, color_feat_dim = 313, spatial_feat_dim
3636
self.top_index = torch.zeros(self.mem_size).to(self.device)
3737
self.top_index = self.top_index - 1.0
3838

39-
self.color_value.require_grad = False
40-
self.spatial_key.require_grad = False
39+
self.color_value.requires_grad = False
40+
self.spatial_key.requires_grad = False
4141

4242
self.Linear = nn.Linear(512, spatial_feat_dim)
4343
self.body = [self.ResNet18, self.Linear]

0 commit comments

Comments
 (0)