MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / Parameter

Class Parameter

imperative/python/megengine/tensor.py:288–295  ·  view source on GitHub ↗

r"""A kind of Tensor that is to be considered a module parameter. Note: Operations happened on Parameter usually return a Tensor instead of Parameter. For example, with a Parameter ``x``, ``x.reshape/to/sum/...`` will result into a Tensor. Any operations between Paramete

Source from the content-addressed store, hash-verified

286
287
288class Parameter(Tensor):
289 r"""A kind of Tensor that is to be considered a module parameter.
290
291 Note:
292 Operations happened on Parameter usually return a Tensor instead of Parameter.
293 For example, with a Parameter ``x``, ``x.reshape/to/sum/...`` will result into a Tensor.
294 Any operations between Parameter and Tensor will have Tensor as outputs.
295 """

Callers 15

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by 15

__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
__init__Method · 0.72
test_module_api_hooksFunction · 0.72
__init__Method · 0.72