MCPcopy Create free account
hub / github.com/BBuf/tvm_mlir_learn / loop

Function loop

torchscript/loop_script_onnx.py:5–8  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

3
4@torch.jit.script
5def loop(x, y):
6 for i in range(int(y)):
7 x = x + i
8 return x
9
10class LoopModel2(torch.nn.Module):
11 def forward(self, x, y):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected