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

Function pred_fun

imperative/python/test/integration/test_trace_dump.py:85–89  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

83
84 @trace(symbolic=True, capture_as_const=True)
85 def pred_fun(data):
86 net.eval()
87 pred = net(data)
88 pred_normalized = F.softmax(pred)
89 return pred_normalized
90
91 train_loss = []
92 val_loss = []

Callers 1

test_xornet_trace_dumpFunction · 0.70

Calls 1

evalMethod · 0.45

Tested by

no test coverage detected