Skip to content

Commit 3b549da

Browse files
committed
Add TODO.
1 parent a9ce575 commit 3b549da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graph_net/torch/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def replay_tensor(info):
272272
if dtype is torch.bool:
273273
return (torch.randn(size=shape) > 0.5).to(dtype).to(device)
274274
tensor = torch.randn(size=shape).to(dtype).to(device) * std * 0.2 + mean
275+
# TODO(Xreki): remove this ugly code, and change the weight_meta instead.
275276
if name.startswith("L_self_modules") and "buffers_running_var" in name:
276277
tensor = torch.clip(tensor, min=0)
277278
return tensor

0 commit comments

Comments
 (0)