Skip to content

[javacpp-pytorch] Overhead of exception-based flow control in AbstractTensor.create #1770

@kilink

Description

@kilink

I believe after the fix from #1722, an exception is thrown on every call to AbstractTensor.create.

Image

It gets caught, and it looks like it is the behavior of PointerScope.attach, however the exception-based flow control adds overhead if this is called in a hot path, so perhaps it could be avoided or reworked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions