Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ create_model
Method
create_model
ML/tests/test_model.py:55–57 ·
view source on GitHub ↗
(self, num_classes)
Source
from the content-addressed store, hash-verified
53
print(
"="
* 60)
54
55
def
create_model(self, num_classes):
56
model = ResNet18(num_classes=num_classes)
57
return
model.to(self.device)
58
59
def
predict_image(self, image_tensor):
60
with
torch.no_grad():
Callers
1
__init__
Method · 0.95
Calls
1
ResNet18
Function · 0.90
Tested by
no test coverage detected