Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Support wrapping and optional lowering on model #737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions classy_vision/models/classy_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ class ClassyBlock(nn.Module):
def __init__(self, name, module):
super().__init__()
self.name = name
self.output = torch.zeros(0)
self._module = module

def wrapped_module(self):
return self._module

def forward(self, input):
output = self._module(input)
self.output = output
return output
return self._module(input)