Skip to content

Commit ae24d47

Browse files
authored
fix i-l class on OrangePi (#2222)
1 parent 50f2ee0 commit ae24d47

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

mindtorch/nn/modules/activation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def forward(self, input: Tensor) -> Tensor:
614614
"""
615615
Runs the forward pass.
616616
"""
617-
return F.elu(input, self.alpha, self.inplace)
617+
return F.elu(input, self.alpha)
618618

619619
def extra_repr(self) -> str:
620620
"""

mindtorch/ops/array.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ def _slice_helper(tensor, slice_spec, do_update=False, updates=None):
767767
if s.stop is not None:
768768
stop = s.stop
769769
if stop == -1:
770-
stop = tensor.shape[index]
770+
stop = tensor.shape[index] - 1
771771
end.append(stop)
772772
else:
773773
end.append(0)
@@ -1069,7 +1069,6 @@ def strided_slice_update(x, begin, end, strides, updates,
10691069
begin_mask=0, end_mask=0,
10701070
ellipsis_mask=0, new_axis_mask=0,
10711071
shrink_axis_mask=0):
1072-
10731072
x_shape = x.shape
10741073
ndim = len(x_shape)
10751074

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run(self):
6464
_create_namespace_links() # 安装后创建链接
6565

6666

67-
version = '0.5.0rc4'
67+
version = '0.5.0'
6868
cur_dir = os.path.dirname(os.path.realpath(__file__))
6969
pkg_dir = os.path.join(cur_dir, 'build')
7070

0 commit comments

Comments
 (0)