Skip to content

Commit 560c306

Browse files
committed
Fix custom calls.
1 parent ffc9b54 commit 560c306

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

torch_xla/csrc/ops/custom_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CustomCall::CustomCall(
1313
xla::Shape output_shape, bool has_side_effect,
1414
const std::string& backend_config, const int api_version,
1515
const std::unordered_map<std::string, std::string>& frontend_attributes)
16-
: XlaNode(xla_custom_call, inputs, std::move(output_shape),
16+
: XlaNode(xla_custom_call, inputs, output_shape,
1717
/*num_outputs=*/output_shape.tuple_shapes_size(),
1818
torch::lazy::MHash(call_target)),
1919
call_target_(call_target),

torch_xla/csrc/ops/gpu_custom_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace torch_xla {
99
GpuCustomCall::GpuCustomCall(torch::lazy::OpList inputs,
1010
xla::Shape output_shape,
1111
const std::string& payload)
12-
: XlaNode(xla_gpu_custom_call, inputs, std::move(output_shape),
12+
: XlaNode(xla_gpu_custom_call, inputs, output_shape,
1313
/*num_outputs=*/output_shape.tuple_shapes_size(),
1414
torch::lazy::MHash(payload)),
1515
payload_(payload) {}

torch_xla/csrc/ops/tpu_custom_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace torch_xla {
99
TpuCustomCall::TpuCustomCall(torch::lazy::OpList inputs,
1010
xla::Shape output_shape,
1111
const std::string& payload)
12-
: XlaNode(xla_tpu_custom_call, inputs, std::move(output_shape),
12+
: XlaNode(xla_tpu_custom_call, inputs, output_shape,
1313
/*num_outputs=*/output_shape.tuple_shapes_size(),
1414
torch::lazy::MHash(payload)),
1515
payload_(payload) {}

0 commit comments

Comments
 (0)