MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / mul_

Method mul_

mllm/core/Tensor.cpp:165–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165Tensor 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
171Tensor Tensor::operator+(float rhs) {
172 auto rhs_tensor = Tensor::empty({1}, dtype(), device()).alloc();

Callers 1

moeInferMethod · 0.80

Calls 2

setInplaceMethod · 0.80
buildOpAndSubmitTaskMethod · 0.80

Tested by

no test coverage detected