For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
DeviceGraphNode
struct DeviceGraphNode[arena_origin: ImmOrigin]
A handle to a node in an under-construction device graph.
Returned by node-adding methods on DeviceGraphBuilder such as
add_function, add_copy, and add_memset. The handle can be used to
refer to the node from later API calls (for example, when expressing
explicit dependency edges).
Parametersβ
- βarena_origin (
ImmOrigin): Origin of theDeviceGraph.createscope that produced this handle. Branding ties the handle's usability to that scope, so a node cannot be used outside the builder callback or mixed into a different graph.
Fieldsβ
- βid (
Int32): Opaque integer identifier of the node within its graph builder.
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
Methodsβ
write_toβ
def write_to(self, mut writer: T)
Writes a human-readable representation of this node handle.
Args:
- βwriter (
T): The writer to output to.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!