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