-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'module' object is not callable #370
Comments
waiting for your answer! THX! |
Hi songqi-github, Thanks for reaching out! Do you witness this behavior without Also, do you mind sharing
Best, |
Hi even I am getting the same error any help highly appreciated!! load netcfg = widerface_640 net.cuda() import tensorrt as trt Traceback (most recent call last): |
Hi, I got the same error without os.environ["CUDA_VISIBLE_DEVICES"]="2". PyTorch Version==1.3.0 |
hi @yashraj02 Have you solved this problem? |
@songqi-github I get the same error.Do you solve it? |
anyone use 'import torch2trt' replace 'from torch2trt import torch2trt' ? |
Hi, all. I meet the same problem, have anyone alreadly solved this issue? |
Hi guys, I think what you should write is |
@Tony-Yan2018 |
Hi @jaybdub , |
@Tony-Yan2018 appreciate your advice, I tried it but the new error torch2trt has no attribute torch2trt was acquired. could you help me? thanks in advance
|
@sjtuherisson I used it replaced. but the 'module' object is not callable was acquired.
|
hi, when I was running this code:
import torch
import os
from torch2trt import torch2trt
from torchvision.models.resnet import resnet18
os.environ["CUDA_VISIBLE_DEVICES"]="2"
model = resnet18(pretrained=True).eval().cuda()
x = torch.ones((1, 3, 224, 224)).cuda()
model_trt = torch2trt(model, [x])
torch.save(model_trt.state_dict(), 'resnet18_trt.pth')
then, there comes out "TypeError: 'module' object is not callable"
how can I fix that?
The text was updated successfully, but these errors were encountered: