Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenPPL/ppl.nn
/ SetDeviceContext
Method
SetDeviceContext
src/ppl/nn/runtime/tensor_impl.h:57–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
}
56
57
void SetDeviceContext(DeviceContext* dev) override {
58
SetDevice(static_cast<Device*>(dev));
59
}
60
61
tensortype_t GetType() const {
62
return type_;
Callers
2
SetInputDeviceOneByOne
Function · 0.80
ThreadExtractTensors
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected