Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegFlow
/ is_host
Method
is_host
flow-plugins/src/utils/frame.rs:51–53 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
49
}
50
51
fn is_host(&self) -> bool {
52
self.inner.device.dev_type == mgc::DeviceType::CPU
53
}
54
55
fn is_device(&self) -> bool {
56
!self.is_host()
Callers
1
is_device
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected