Skip to content

Torchscript tutorial example is broken #52480

@indigoviolet

Description

@indigoviolet

📚 Documentation

https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html#using-scripting-to-convert-modules

The example is trying to motivate why scripting is needed, by demonstrating a missing conditional in tracing, but the actual output code is identical between the tracing and scripting cases -- perhaps we need to show the output of compiling MyDecisionGate instead of MyCell?

cc @gmagogsfm

Metadata

Metadata

Assignees

Labels

oncall: jitAdd this issue/PR to JIT oncall triage queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions