Skip to content

Commit d24c66c

Browse files
committed
Fix the init dtype.
1 parent d21583b commit d24c66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph_net/paddle/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def replay_tensor(info):
213213
).to(device)
214214
else:
215215
if mean is not None and std is not None:
216-
tensor = paddle.empty(shape=shape, dtype=dtype)
216+
tensor = paddle.empty(shape=shape, dtype="float32")
217217
initializer = paddle.nn.initializer.TruncatedNormal(
218218
mean=mean, std=std, a=min_val, b=max_val
219219
)

0 commit comments

Comments
 (0)