File tree 2 files changed +0
-10
lines changed
2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 7
7
from torchgen .api .types import (
8
8
BaseCType ,
9
9
OptionalCType ,
10
- scalarT ,
11
10
VectorCType ,
12
11
boolT ,
13
12
kernel_signature ,
Original file line number Diff line number Diff line change @@ -71,11 +71,6 @@ torch_xla::XlaOpVector Amin::Lower(LoweringContext* loctx) const {
71
71
}
72
72
73
73
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);
79
74
xla::XlaOp xla_input = loctx->GetOutputOp (operand (0 ));
80
75
xla::XlaOp xla_t1 = loctx->GetOutputOp (operand (1 ));
81
76
xla::XlaOp xla_t2 = loctx->GetOutputOp (operand (2 ));
@@ -84,10 +79,6 @@ torch_xla::XlaOpVector Addcdiv::Lower(LoweringContext* loctx) const {
84
79
}
85
80
86
81
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);
91
82
xla::XlaOp xla_input = loctx->GetOutputOp (operand (0 ));
92
83
xla::XlaOp xla_t1 = loctx->GetOutputOp (operand (1 ));
93
84
xla::XlaOp xla_t2 = loctx->GetOutputOp (operand (2 ));
You can’t perform that action at this time.
0 commit comments