Skip to content

Using a tensor as both input and output #4681

@MahmoudAshraf97

Description

@MahmoudAshraf97

Hello, I'm implementing an engine that takes in a state tensor and iterates on it and returns the updated tensor, I have to allocate two tensors, one for the input and one for the output, how can I reuse the input tensor as the output and update it in place? I tried passing the same pointer to the engine but the results are wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module:RuntimeOther generic runtime issues that does not fall into other modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions