Skip to content

Commit 0cfee8c

Browse files
authored
fix no test_step error in TorchWrapper (#1600)
1 parent 71fc8e3 commit 0cfee8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/profiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __init__(self, model):
8080
self.model = model
8181

8282
@TimeCounter.count_time(Backend.PYTORCH.value)
83-
def forward(self, *args, **kwargs):
84-
return self.model(*args, **kwargs)
83+
def test_step(self, *args, **kwargs):
84+
return self.model.test_step(*args, **kwargs)
8585

8686

8787
def main():

0 commit comments

Comments
 (0)