MCPcopy Create free account
hub / github.com/apache/tvm / main

Method main

tests/python/relax/test_frontend_from_exported_program.py:1164–1172  ·  view source on GitHub ↗
(input_1: R.Tensor((1, 3, 10, 10), dtype="float32"))

Source from the content-addressed store, hash-verified

1162 class expected1:
1163 @R.function
1164 def main(input_1: R.Tensor((1, 3, 10, 10), dtype="float32")) -> R.Tuple(
1165 R.Tensor((1, 3, 10, 10), dtype="float32")
1166 ):
1167 # block 0
1168 with R.dataflow():
1169 lv: R.Tensor((1, 3, 10, 10), dtype="float32") = R.nn.log_softmax(input_1, axis=1)
1170 gv: R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")) = (lv,)
1171 R.output(gv)
1172 return gv
1173
1174 example_args = (torch.randn(1, 3, 10, 10, dtype=torch.float32),)
1175 verify_model(LogSoftmax(), example_args, {}, expected1)

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
log_softmaxMethod · 0.80
outputMethod · 0.80
batch_normMethod · 0.80
adaptive_avg_pool2dMethod · 0.80
squeezeMethod · 0.80
avg_pool2dMethod · 0.80
conv1d_transposeMethod · 0.80
conv2d_transposeMethod · 0.80
conv1dMethod · 0.80
group_normMethod · 0.80

Tested by

no test coverage detected