init(commandQueue:)
Initialize a compute stream which will encode its work to the provided command queue.
Declaration
init(commandQueue: any MTLCommandQueue)Parameters
- commandQueue:
The queue which inference will be encoded to when running Encode(inputs:states:outputviews:to:).
Discussion
You can use this to encode inferences to your own metal queue.