Closed plusczh closed 6 years ago
I got a similar issue. How did you solve it?
x = torch.randn(1,3,640,640)
model = model.float()
params = dict(model.named_parameters())
make_dot(model(x), params=params).render("graph", format="png")
Traceback (most recent call last):
File "test_model.py", line 17, in
File "F:\Anaconda3\lib\site-packages\torchviz\dot.py", line 38, in add_nodes if var not in seen: TypeError: unhashable type: 'list'