共用方式為


MPSRnnMatrixTrainingLayer.EncodeCopyWeights 方法

定義

[Foundation.Export("encodeCopyWeightsToCommandBuffer:weights:matrixId:matrix:copyFromWeightsToMatrix:matrixOffset:")]
public virtual void EncodeCopyWeights (Metal.IMTLCommandBuffer commandBuffer, MetalPerformanceShaders.MPSMatrix[] weights, MetalPerformanceShaders.MPSRnnMatrixId matrixId, MetalPerformanceShaders.MPSMatrix matrix, bool copyFromWeightsToMatrix, Metal.MTLOrigin matrixOffset);
abstract member EncodeCopyWeights : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSMatrix[] * MetalPerformanceShaders.MPSRnnMatrixId * MetalPerformanceShaders.MPSMatrix * bool * Metal.MTLOrigin -> unit
override this.EncodeCopyWeights : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSMatrix[] * MetalPerformanceShaders.MPSRnnMatrixId * MetalPerformanceShaders.MPSMatrix * bool * Metal.MTLOrigin -> unit

參數

commandBuffer
IMTLCommandBuffer
weights
MPSMatrix[]
matrixId
MPSRnnMatrixId
matrix
MPSMatrix
copyFromWeightsToMatrix
Boolean
matrixOffset
MTLOrigin
屬性

適用於