Shortcuts

functorch.compile.ts_compile

functorch.compile.ts_compile(fx_g, inps)[source]

Compiles the fx_g with Torchscript compiler.

Warning

This API is experimental and likely to change.

Parameters

fx_g (fx.GraphModule) – The input Fx graph module to be compiled.

Returns

Torch scripted model.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources