Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ reset_zero
Method
reset_zero
imperative/python/megengine/tensor.py:195–196 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
193
194
@deprecated(version=
"1.0"
, reason=
"use ``*= 0`` instead"
)
195
def
reset_zero(self):
196
self *= 0
197
198
def
to(self, device, *, _borrow=False):
199
r
""
"Copy self :class:`~.Tensor` to specified device. See :func:`~.copy`"
""
Callers
2
zero_grad
Method · 0.80
zero_grad
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected