Skip to content

Commit

Permalink
[tracer] skip_unsupported torchvision ops (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
zk1998 authored Oct 1, 2024
1 parent 133c095 commit 7a4aee5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 7 additions & 1 deletion tinynn/graph/configs/gen_modules_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@
print(k, c, issubclass(c, torch.nn.Module))
print(c.__module__)
# Skip container modules
if c.__name__ in ('FeaturePyramidNetwork', 'SqueezeExcitation'):
if c.__name__ in (
'FeaturePyramidNetwork',
'SqueezeExcitation',
'Conv2dNormActivation',
'Conv3dNormActivation',
'MLP',
):
continue
final_dict.setdefault('torchvision.ops', [])
final_dict['torchvision.ops'].append(k)
Expand Down
3 changes: 0 additions & 3 deletions tinynn/graph/configs/torch_module_override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ torchvision.ops:
- DeformConv2d
- DropBlock2d
- DropBlock3d
- Conv2dNormActivation
- Conv3dNormActivation
- FrozenBatchNorm2d
- MLP
- Permute
- MultiScaleRoIAlign
- PSRoIAlign
Expand Down

0 comments on commit 7a4aee5

Please sign in to comment.