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

Method test_decryption

lite/pylite/test/test_network.py:101–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99
100class TestNetwork(TestShuffleNet):
101 def test_decryption(self):
102 model_path = os.path.join(self.source_dir, "shufflenet_crypt_aes.mge")
103 config = LiteConfig()
104 config.bare_model_cryption_name = "AES_default".encode("utf-8")
105 network = LiteNetwork(config)
106 network.load(model_path)
107 self.do_forward(network)
108
109 def test_pack_model(self):
110 model_path = os.path.join(self.source_dir, "test_packed_model_rc4.lite")

Callers

nothing calls this directly

Calls 6

loadMethod · 0.95
LiteNetworkClass · 0.85
joinMethod · 0.80
LiteConfigClass · 0.50
encodeMethod · 0.45
do_forwardMethod · 0.45

Tested by

no test coverage detected