I am using torch summary. I want to pass more than one argument when printing the model summary, one of which is just an integer. However, I get an error. I follow this question recommendation but it is not working.
My network looks like
import torch
from torch import nn
from torchsummary import summary
class SimpleNet(nn.Module):
def __init__(self):
super().__init__()
def forward(self, x,t):
return t * x
I tried to run summary as summary(model,[(3, 64, 64),(1)])
and got TypeError: rand() argument after * must be an iterable, not int
.
"Solved" that by doing summary(model,[(3, 64, 64),(1,)])
but still get another TypeError: can't multiply sequence by non-int of type 'tuple'
.
How can I get the model summary then?