public protocol TensorGroup : TensorArrayProtocol
A protocol representing types that can be mapped to and from Array<CTensorHandle>
.
When a TensorGroup
is used as an argument to a tensor operation, it is passed as an argument
list whose elements are the tensor fields of the type.
When a TensorGroup
is returned as a result of a tensor operation, it is initialized with its
tensor fields set to the tensor operation’s tensor results.
-
Initializes a value of this type, taking ownership of the
_tensorHandleCount
tensors starting at addresstensorHandles
.Declaration
init(_owning tensorHandles: UnsafePointer<CTensorHandle>?)
-
init(_owning:count:)
Declaration
public init(_owning tensorHandles: UnsafePointer<CTensorHandle>?, count: Int)