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

Method forward

imperative/python/megengine/module/activation.py:42–43  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

40 self.axis = axis
41
42 def forward(self, inputs):
43 return softmax(inputs, self.axis)
44
45 def _module_info_string(self) -> str:
46 return "axis={axis}".format(axis=self.axis)

Callers

nothing calls this directly

Calls 1

softmaxFunction · 0.50

Tested by

no test coverage detected