Skip to content

torch.jit.load causes an error when using scalene #908

@chaitanya-kolluru-elucid

Description

Describe the bug
I have some code that loads a pytorch model with torch.jit.load. Things run fine when running the script normally, but when adding scalene with python -m scalene <program.py> it breaks.

Screenshots

  File "/usr/local/lib/python3.8/site-packages/torch/jit/_serialization.py", line 169, in load
    return wrap_cpp_module(cpp_module)
  File "/usr/local/lib/python3.8/site-packages/torch/jit/_recursive.py", line 885, in wrap_cpp_module
    return torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
AttributeError: type object 'RecursiveScriptModule' has no attribute '_construct'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions