Skip to content

ORT fails on unused input in a function #524

@justinchuby

Description

@justinchuby

In the example below, self was not used in the function, and ORT complains with failed validating the check: !(it.GetName().empty()) (microsoft/onnxruntime#13278)

@torch_op("aten::copy")
def aten_copy(
    self: TTensor, src: TTensor, non_blocking: bool = False  # pylint: disable=unused-argument
) -> TTensor:
    """copy(Tensor self, Tensor src, bool non_blocking=False) -> Tensor"""

    self = op.Identity(src)
    return self

cc @gramalingam @xiaowuhu @fatcat-z @titaiwangms

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: torchlibRelated to the torch/aten function lib in development

    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