We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ce575 commit 3b549daCopy full SHA for 3b549da
graph_net/torch/utils.py
@@ -272,6 +272,7 @@ def replay_tensor(info):
272
if dtype is torch.bool:
273
return (torch.randn(size=shape) > 0.5).to(dtype).to(device)
274
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.
276
if name.startswith("L_self_modules") and "buffers_running_var" in name:
277
tensor = torch.clip(tensor, min=0)
278
return tensor
0 commit comments