MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / get_dev_id

Method get_dev_id

flow-plugins/src/utils/frame.rs:60–66  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

58
59 #[getter(dev_id)]
60 fn get_dev_id(&self) -> Option<isize> {
61 if self.is_device() {
62 Some(self.inner.device.dev_id as isize)
63 } else {
64 None
65 }
66 }
67
68 #[getter(pts)]
69 fn get_pts(&self) -> isize {

Callers

nothing calls this directly

Calls 1

is_deviceMethod · 0.80

Tested by

no test coverage detected