Skip to content

[C++][Compute] Arguments become invalid after execution but before wrapping results #47332

@zanmato1984

Description

@zanmato1984

Describe the bug, including details regarding any error messages, version, and platform.

Note the code

RETURN_NOT_OK(
executor->Execute(ExecBatch(std::move(arguments), input_length), &listener));
const auto out = executor->WrapResults(arguments, listener.values());

The std::move(arguments) is obviously problematic as arguments is still needed down in WrapResults. This actually causes the WrapResults, which is supposed to recover the output chunked shape, sees empty arguments thus doesn't do the shape recovery.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions