Class MPSMatrixFullyConnectedGradient

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPSMatrixFullyConnectedGradient
extends MPSMatrixBinaryKernel
Since:
Available in iOS 12.0 and later.
  • Constructor Details

    • MPSMatrixFullyConnectedGradient

      public MPSMatrixFullyConnectedGradient()
    • MPSMatrixFullyConnectedGradient

      protected MPSMatrixFullyConnectedGradient​(NSObject.Handle h, long handle)
    • MPSMatrixFullyConnectedGradient

      protected MPSMatrixFullyConnectedGradient​(NSObject.SkipInit skipInit)
    • MPSMatrixFullyConnectedGradient

      public MPSMatrixFullyConnectedGradient​(MTLDevice device)
    • MPSMatrixFullyConnectedGradient

      public MPSMatrixFullyConnectedGradient​(NSCoder decoder, MTLDevice device)
    • MPSMatrixFullyConnectedGradient

      public MPSMatrixFullyConnectedGradient​(NSCoder coder)
  • Method Details

    • getSourceNumberOfFeatureVectors

      public long getSourceNumberOfFeatureVectors()
    • setSourceNumberOfFeatureVectors

      public void setSourceNumberOfFeatureVectors​(long v)
    • getSourceOutputFeatureChannels

      public long getSourceOutputFeatureChannels()
    • setSourceOutputFeatureChannels

      public void setSourceOutputFeatureChannels​(long v)
    • getSourceInputFeatureChannels

      public long getSourceInputFeatureChannels()
    • setSourceInputFeatureChannels

      public void setSourceInputFeatureChannels​(long v)
    • getAlpha

      public double getAlpha()
    • setAlpha

      public void setAlpha​(double v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(MTLDevice device)
      Overrides:
      init in class MPSKernel
    • encodeGradient

      public void encodeGradient​(MTLCommandBuffer commandBuffer, MPSMatrix gradientMatrix, MPSMatrix weightMatrix, MPSMatrix resultGradientForDataMatrix)
    • encodeGradient

      public void encodeGradient​(MTLCommandBuffer commandBuffer, MPSMatrix gradientMatrix, MPSMatrix inputMatrix, MPSMatrix resultGradientForWeightMatrix, MPSVector resultGradientForBiasVector)
    • init

      protected long init​(NSCoder decoder, MTLDevice device)
      Overrides:
      init in class MPSKernel
    • copy

      public MPSMatrixFullyConnectedGradient copy​(NSZone zone, MTLDevice device)
      Overrides:
      copy in class MPSKernel