Struct CudaGraphNode
public readonly struct CudaGraphNode : IEquatable<CudaGraphNode>
- Implements
- Inherited Members
Remarks
The token is graph-owned and must not be destroyed independently. 该 token 由 graph 拥有,不能被单独销毁。
Properties
IsNull
Gets whether this node token is empty. 获取当前 node token 是否为空。
public bool IsNull { get; }
Property Value
Methods
Equals(CudaGraphNode)
Compares two node tokens for equality. 比较两个 node token 是否相等。
public bool Equals(CudaGraphNode other)
Parameters
otherCudaGraphNodeThe other node token. 另一个 node token。
Returns
Equals(object?)
Compares the current node token with another object. 将当前 node token 与另一个对象进行比较。
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare. 要比较的对象。
Returns
- bool
true when the object is an equal CudaGraphNode. 当对象是相等的 CudaGraphNode 时返回 true。
GetHashCode()
Returns a hash code for the node token. 返回当前 node token 的哈希代码。
public override int GetHashCode()
Returns
ToString()
Formats the node token as hexadecimal text. 将 node token 格式化为十六进制文本。
public override string ToString()
Returns
Operators
operator ==(CudaGraphNode, CudaGraphNode)
Returns whether two node tokens are equal. 返回两个 node token 是否相等。
public static bool operator ==(CudaGraphNode left, CudaGraphNode right)
Parameters
leftCudaGraphNoderightCudaGraphNode
Returns
operator !=(CudaGraphNode, CudaGraphNode)
Returns whether two node tokens are not equal. 返回两个 node token 是否不相等。
public static bool operator !=(CudaGraphNode left, CudaGraphNode right)
Parameters
leftCudaGraphNoderightCudaGraphNode