Skip to content

Commit

Permalink
#0: Unary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sminakov-tt committed Nov 26, 2024
1 parent 1171a25 commit 76234da
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ spec_return_value_t UnaryDeviceOperation::compute_output_specs(

tensor_return_value_t UnaryDeviceOperation::create_output_tensors(
const operation_attributes_t& args, const tensor_args_t& tensor_args) {
if (tensor_args.preallocated_output.has_value()) {
return *tensor_args.preallocated_output;
}
return create_device_tensor(compute_output_specs(args, tensor_args), tensor_args.input.device());
}

Expand Down

0 comments on commit 76234da

Please sign in to comment.