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

Method get_input_name

lite/pylite/megenginelite/network.py:788–800  ·  view source on GitHub ↗

get the input name by the index in the network Args: index: the index of the input name Returns: the name of input tesor with given index

(self, index)

Source from the content-addressed store, hash-verified

786 return tensor
787
788 def get_input_name(self, index):
789 """
790 get the input name by the index in the network
791
792 Args:
793 index: the index of the input name
794
795 Returns:
796 the name of input tesor with given index
797 """
798 c_name = c_char_p()
799 self._api.LITE_get_input_name(self._network, index, byref(c_name))
800 return c_name.value.decode("utf-8")
801
802 def get_output_name(self, index):
803 """

Callers 11

test_network_basicMethod · 0.95
test_network_basicMethod · 0.95
test_network_by_shareMethod · 0.95
test_network_asyncMethod · 0.95
do_forwardMethod · 0.45
do_forwardMethod · 0.45
do_forwardMethod · 0.45
do_forwardMethod · 0.45

Calls

no outgoing calls

Tested by 11

test_network_basicMethod · 0.76
test_network_basicMethod · 0.76
test_network_by_shareMethod · 0.76
test_network_asyncMethod · 0.76
do_forwardMethod · 0.36
do_forwardMethod · 0.36
do_forwardMethod · 0.36
do_forwardMethod · 0.36