@@ -690,35 +690,6 @@ XLATensorPtr XLATensor::add(
690690 logical_element_type);
691691}
692692
693- XLATensorPtr XLATensor::addcdiv (const XLATensorPtr& input,
694- const at::Scalar& value,
695- const XLATensorPtr& tensor1,
696- const XLATensorPtr& tensor2) {
697- torch::lazy::Value constant = GetIrValueForScalar (
698- value, tensor1->shape ().get ().element_type (), input->GetDevice ());
699- torch::lazy::Value div = tensor1->GetIrValue () / tensor2->GetIrValue ();
700- return input->CreateFrom (input->GetIrValue () + div * constant);
701- }
702-
703- void XLATensor::addcdiv_ (XLATensorPtr& input, const at::Scalar& value,
704- const XLATensorPtr& tensor1,
705- const XLATensorPtr& tensor2) {
706- torch::lazy::Value constant = GetIrValueForScalar (
707- value, tensor1->shape ().get ().element_type (), input->GetDevice ());
708- torch::lazy::Value div = tensor1->GetIrValue () / tensor2->GetIrValue ();
709- input->SetInPlaceIrValue (input->GetIrValue () + div * constant);
710- }
711-
712- XLATensorPtr XLATensor::addcmul (const XLATensorPtr& input,
713- const at::Scalar& value,
714- const XLATensorPtr& tensor1,
715- const XLATensorPtr& tensor2) {
716- torch::lazy::Value constant = GetIrValueForScalar (
717- value, tensor1->shape ().get ().element_type (), input->GetDevice ());
718- torch::lazy::Value mul = tensor1->GetIrValue () * tensor2->GetIrValue ();
719- return input->CreateFrom (input->GetIrValue () + mul * constant);
720- }
721-
722693XLATensorPtr XLATensor::addmm (const XLATensorPtr& input,
723694 const XLATensorPtr& weight,
724695 const XLATensorPtr& bias) {
0 commit comments