Skip to content

Commit 124f973

Browse files
committed
replace int32 to float32 because CINN not support int64_t type
1 parent d329e78 commit 124f973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/laplace2d/laplace2d_static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def GenSolution(xy, bc_index):
123123
loss_d = exe.run(compiled_program,
124124
feed={
125125
'x': geo.get_space_domain().astype(np.float32),
126-
'bc_idx': geo.bc_index,
126+
'bc_idx': geo.bc_index.astype(np.float32),
127127
'bc_v': pdes.bc_value
128128
},
129129
fetch_list=[loss.name])

0 commit comments

Comments
 (0)