profiling update

pull/1/head
Glenn Jocher 5 years ago
parent 2703ac73e8
commit 67d5e65c77

@ -180,8 +180,8 @@ if __name__ == '__main__':
model.train() model.train()
# Profile # Profile
img = torch.rand(8 if torch.cuda.is_available() else 1, 3, 640, 640).to(device) # img = torch.rand(8 if torch.cuda.is_available() else 1, 3, 640, 640).to(device)
y = model(img, profile=True) # y = model(img, profile=True)
# print([y[0].shape] + [x.shape for x in y[1]]) # print([y[0].shape] + [x.shape for x in y[1]])
# ONNX export # ONNX export

Loading…
Cancel
Save