| 163 | } |
| 164 | |
| 165 | Tensor Tensor::mul_(const Tensor& rhs) { |
| 166 | auto opts = aops::MulOpOptions{}; |
| 167 | opts.setInplace(true); |
| 168 | return Context::instance().buildOpAndSubmitTask(OpTypes::kMul, opts, {*this, rhs})[0]; |
| 169 | } |
| 170 | |
| 171 | Tensor Tensor::operator+(float rhs) { |
| 172 | auto rhs_tensor = Tensor::empty({1}, dtype(), device()).alloc(); |
no test coverage detected