Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
def
loop(x, y):
6
for
i in range(int(y)):
7
x = x + i
8
return
x
9
10
class
LoopModel2(torch.nn.Module):
11
def
forward(self, x, y):
Callers
1
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected