You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
torch.add() doesn't show up in the output of summary.
Is there any way to show all the correct sequential layers in the forward method of the Net?
My Net as follows.
`import torch
import torch.nn as nn
from math import sqrt
from torchsummary import summary
torch.add() doesn't show up in the output of summary.
Is there any way to show all the correct sequential layers in the forward method of the Net?
My Net as follows.
`import torch
import torch.nn as nn
from math import sqrt
from torchsummary import summary
from torchkeras import summary
class Conv_ReLU_Block(nn.Module):
def init(self):
super(Conv_ReLU_Block, self).init()
self.conv = nn.Conv2d(in_channels=64, out_channels=64, kernel_size=3, stride=1, padding=1, bias=False)
self.relu = nn.ReLU(inplace=True)
class Net(nn.Module):
def init(self):
super(Net, self).init()
self.residual_layer = self.make_layer(Conv_ReLU_Block, 18)
self.input = nn.Conv2d(in_channels=1, out_channels=64, kernel_size=3, stride=1, padding=1, bias=False)
self.output = nn.Conv2d(in_channels=64, out_channels=1, kernel_size=3, stride=1, padding=1, bias=False)
self.relu = nn.ReLU(inplace=True)
if name == 'main':
model = Net()
`
The text was updated successfully, but these errors were encountered: