Class MPSCNNConvolutionTransposeGradientState

  • All Implemented Interfaces:
    MPSImageSizeEncodingState, NSObject

    public class MPSCNNConvolutionTransposeGradientState
    extends MPSCNNConvolutionGradientState
    MPSCNNConvolutionTransposeGradientState The MPSCNNConvolutionTransposeGradientState is returned by resultStateForSourceImage:sourceStates method on MPSCNNConvolutionTranspose object. Note that resultStateForSourceImage:sourceStates:destinationImage creates the object on autoreleasepool. It will be consumed by MPSCNNConvolutionTransposeGradient. It contains reference to MPSCNNConvolutionGradientState object that connects MPSCNNConvolution and its corresponding MPSCNNConvolutionTranspose in forward pass of autoencoder. In an autoencoder forward pass, MPSCNNConvolutionGradientState is produced by MPSCNNConvolution object and is used by corresponding MPSCNNConvolutionTraspose of forward pass that "undo" the corresponding MPSCNNConvolution. It is used to correctly size destination image that is returned on left hand side by encode call MPSCNNConvolutionTranspose as well as automatically set kernelOffsetX/Y on MPSCNNConvolutionTranspose using the offset and other properties of corresponding MPSCNNConvolution object. During training, same MPSCNNConvolutionGradientState object will be consumed by MPSCNNConvolutionGradient object and the MPSCNNConvolutionTransposeGradientState produced by MPSCNNConvolutionTranspose's resultStateForSourceImage:sourceStates:destinationImage will be consumed by MPSCNNConvolutionTransposeGradient object Note that state objects are not usable across batches i.e. when batch is done you should nuke the state object and create new one for next batch. Weights update process for MPSCNNConvolutionTranspose is same as explained above for MPSCNNConvolution. See comments for MPSCNNConvolutionGradientState.
    • Constructor Detail

      • MPSCNNConvolutionTransposeGradientState

        protected MPSCNNConvolutionTransposeGradientState​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • convolutionTranspose

        public MPSCNNConvolutionTranspose convolutionTranspose()
        [@property] convolutionTranspose The convolutionTranspose filter that produced the state.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • temporaryStateWithCommandBuffer

        public static java.lang.Object temporaryStateWithCommandBuffer​(MTLCommandBuffer cmdBuf)
      • temporaryStateWithCommandBufferBufferSize

        public static java.lang.Object temporaryStateWithCommandBufferBufferSize​(MTLCommandBuffer cmdBuf,
                                                                                 long bufferSize)
      • temporaryStateWithCommandBufferResourceList

        public static java.lang.Object temporaryStateWithCommandBufferResourceList​(MTLCommandBuffer commandBuffer,
                                                                                   MPSStateResourceList resourceList)
      • temporaryStateWithCommandBufferTextureDescriptor

        public static java.lang.Object temporaryStateWithCommandBufferTextureDescriptor​(MTLCommandBuffer cmdBuf,
                                                                                        MTLTextureDescriptor descriptor)
      • version_static

        public static long version_static()