Skip to content

Improve save() method in torch.jit.ScriptModule #17688

@laughmetal

Description

@laughmetal

🚀 Feature

save() method in torch.jit.ScriptModule should support save_to_buffer as well.

Motivation

Right now, to save a torch.jit.ScriptModule to buffer, I have to call function torch.jit.save().
It would be more convenient and consistent if torch.jit.ScriptModule.save() can perform the same job.

Pitch

I can work on this feature.

cc @suo

Metadata

Metadata

Assignees

No one assigned

    Labels

    jit-backloglow priorityWe're unlikely to get around to doing this in the near futureoncall: jitAdd this issue/PR to JIT oncall triage queuetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions