Skip to content

Commit 5d6d018

Browse files
committed
remove comment
1 parent 51e6043 commit 5d6d018

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

scripts/gen_lazy_tensor.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from torchgen.api.types import (
88
BaseCType,
99
OptionalCType,
10-
scalarT,
1110
VectorCType,
1211
boolT,
1312
kernel_signature,

torch_xla/csrc/ops/ops_lower_fn.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ torch_xla::XlaOpVector Amin::Lower(LoweringContext* loctx) const {
7171
}
7272

7373
torch_xla::XlaOpVector Addcdiv::Lower(LoweringContext* loctx) const {
74-
// xla::XlaOp xla_input = loctx->GetOutputOp(operand(0));
75-
// torch::lazy::Value constant = GetIrValueForScalar(
76-
// value, tensor1->shape().get().element_type(), input->GetDevice());
77-
// torch::lazy::Value div = tensor1->GetIrValue() / tensor2->GetIrValue();
78-
// return input->CreateFrom(input->GetIrValue() + div * constant);
7974
xla::XlaOp xla_input = loctx->GetOutputOp(operand(0));
8075
xla::XlaOp xla_t1 = loctx->GetOutputOp(operand(1));
8176
xla::XlaOp xla_t2 = loctx->GetOutputOp(operand(2));
@@ -84,10 +79,6 @@ torch_xla::XlaOpVector Addcdiv::Lower(LoweringContext* loctx) const {
8479
}
8580

8681
torch_xla::XlaOpVector Addcmul::Lower(LoweringContext* loctx) const {
87-
// torch::lazy::Value constant = GetIrValueForScalar(
88-
// value, tensor1->shape().get().element_type(), input->GetDevice());
89-
// torch::lazy::Value mul = tensor1->GetIrValue() * tensor2->GetIrValue();
90-
// return input->CreateFrom(input->GetIrValue() + mul * constant);
9182
xla::XlaOp xla_input = loctx->GetOutputOp(operand(0));
9283
xla::XlaOp xla_t1 = loctx->GetOutputOp(operand(1));
9384
xla::XlaOp xla_t2 = loctx->GetOutputOp(operand(2));

0 commit comments

Comments
 (0)