Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mindtorch/nn/modules/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def forward(self, input: Tensor) -> Tensor:
"""
Runs the forward pass.
"""
return F.elu(input, self.alpha, self.inplace)
return F.elu(input, self.alpha)

def extra_repr(self) -> str:
"""
Expand Down
3 changes: 1 addition & 2 deletions mindtorch/ops/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def _slice_helper(tensor, slice_spec, do_update=False, updates=None):
if s.stop is not None:
stop = s.stop
if stop == -1:
stop = tensor.shape[index]
stop = tensor.shape[index] - 1
end.append(stop)
else:
end.append(0)
Expand Down Expand Up @@ -1069,7 +1069,6 @@ def strided_slice_update(x, begin, end, strides, updates,
begin_mask=0, end_mask=0,
ellipsis_mask=0, new_axis_mask=0,
shrink_axis_mask=0):

x_shape = x.shape
ndim = len(x_shape)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(self):
_create_namespace_links() # 安装后创建链接


version = '0.5.0rc4'
version = '0.5.0'
cur_dir = os.path.dirname(os.path.realpath(__file__))
pkg_dir = os.path.join(cur_dir, 'build')

Expand Down