Skip to content

Commit 829d1d4

Browse files
committed
fix the value assign issue in stridedslice
1 parent 08edfaa commit 829d1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def reshape(self, bottom, top):
9898
top[0].reshape(*self.shape)
9999

100100
def forward(self, bottom, top):
101-
top[0].data[:] = bottom[0].data[self.slices][:]
101+
top[0].data[...] = bottom[0].data[self.slices][:]
102102

103103
def backward(self, top, propagate_down, bottom):
104104
for i in range(len(propagate_down)):

0 commit comments

Comments
 (0)