Skip to content

non_blocking in .to() of XLA tensor #2791

@ydcjeff

Description

@ydcjeff

❓ Questions and Help

I am just adapting the code that runs on cuda to xla.
Following the Running on a Single XLA Device code sinppet, and I have non_blocking=True for cuda device.
Question is can non_blocking=True convert to xla tensor asynchronously like cuda tensor does?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    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