@@ -662,35 +662,6 @@ XLATensorPtr XLATensor::add(
662
662
logical_element_type);
663
663
}
664
664
665
- XLATensorPtr XLATensor::addcdiv (const XLATensorPtr& input,
666
- const at::Scalar& value,
667
- const XLATensorPtr& tensor1,
668
- const XLATensorPtr& tensor2) {
669
- torch::lazy::Value constant = GetIrValueForScalar (
670
- value, tensor1->shape ().get ().element_type (), input->GetDevice ());
671
- torch::lazy::Value div = tensor1->GetIrValue () / tensor2->GetIrValue ();
672
- return input->CreateFrom (input->GetIrValue () + div * constant);
673
- }
674
-
675
- void XLATensor::addcdiv_ (XLATensorPtr& input, const at::Scalar& value,
676
- const XLATensorPtr& tensor1,
677
- const XLATensorPtr& tensor2) {
678
- torch::lazy::Value constant = GetIrValueForScalar (
679
- value, tensor1->shape ().get ().element_type (), input->GetDevice ());
680
- torch::lazy::Value div = tensor1->GetIrValue () / tensor2->GetIrValue ();
681
- input->SetInPlaceIrValue (input->GetIrValue () + div * constant);
682
- }
683
-
684
- XLATensorPtr XLATensor::addcmul (const XLATensorPtr& input,
685
- const at::Scalar& value,
686
- const XLATensorPtr& tensor1,
687
- const XLATensorPtr& tensor2) {
688
- torch::lazy::Value constant = GetIrValueForScalar (
689
- value, tensor1->shape ().get ().element_type (), input->GetDevice ());
690
- torch::lazy::Value mul = tensor1->GetIrValue () * tensor2->GetIrValue ();
691
- return input->CreateFrom (input->GetIrValue () + mul * constant);
692
- }
693
-
694
665
XLATensorPtr XLATensor::addmm (const XLATensorPtr& input,
695
666
const XLATensorPtr& weight,
696
667
const XLATensorPtr& bias) {
0 commit comments