Skip to content

Use of torch.inference_mode #1

Description

@phinate

@torch.no_grad()

Just for teaching: torch.inference_mode is a bit faster, and it prompts the question of how is it different from torch.no_grad (afaik, it's because things created under no_grad can participate in downstream grad calcs as constants, but inference_mode is much stricter and will error completely if you tried the same thing!).

Really nice project :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions