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

Method cpu

mllm/core/Tensor.cpp:452–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452Tensor Tensor::cpu() {
453 if (kCPU == impl_->device()) { return *this; }
454 return to(kCPU);
455}
456
457Tensor Tensor::cuda() {
458 if (kCUDA == impl_->device()) { return *this; }

Callers 1

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected