Skip to content

Commit 0d4a5ed

Browse files
committed
delete unused expr
1 parent 5bcdd07 commit 0d4a5ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graph_net/paddle/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def replay_tensor(info):
180180
if "data" in info and info["data"] is not None:
181181
return paddle.reshape(info["data"], shape).to(dtype).to(device)
182182
elif dtype == paddle.int32 or dtype == paddle.int64:
183+
# for some ops(binary_cross_entropy), label data can only be set 0 or 1.
183184
return paddle.cast(
184185
paddle.randint(low=0, high=2, shape=shape, dtype="int64"),
185186
dtype,

0 commit comments

Comments
 (0)