Skip to content

Commit

Permalink
removed torchinfo usage
Browse files Browse the repository at this point in the history
  • Loading branch information
oleschwen committed Nov 26, 2024
1 parent 9cecb48 commit f68995d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from models.base_model import BasicClassifier
import torch
import torch.nn as nn
import torchinfo
import math

class MiniCNNForTesting(BasicClassifier):
Expand Down Expand Up @@ -35,7 +34,6 @@ def __init__(self,
nn.Linear(linear_waste_of_memory, 1)
)
print(self.model)
torchinfo.summary(self.model, input_size=(1, 1, 18, 18))

def forward(self, x_in: torch.Tensor, **kwargs) -> torch.Tensor:
return self.model(x_in)

0 comments on commit f68995d

Please sign in to comment.