Skip to content

symbolically traced variables cannot be used as inputs[BUG] Issue title... #1176

@kanlions

Description

@kanlions

Describe the bug
A clear and concise description of what the bug is.
This happens when we try to integrate TorchFX with TIMM models. For example try 'regnety_032'
To Reproduce
Steps to reproduce the behavior:

  1. from torchvision.models.feature_extraction import get_graph_node_names, create_feature_extractor
    2.model = timm.create_model('regnety_032', pretrained=True, features_only=True)
  2. nodes,_ = get_graph_node_names(model)

Expected behavior
A clear and concise description of what you expected to happen.
We would have got the layers

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10, Ubuntu 18.04]
  • This repository version [e.g. pip 0.3.1 or commit ref]
  • PyTorch version w/ CUDA/cuDNN [e.g. from conda list, 1.7.0 py3.8_cuda11.0.221_cudnn8.0.3_0]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions