MetalPerformanceShaders · IOS API REFERENCE
MPSNNForwardLossNode
class · iOS 13.0+ · SDK 27.1
class MPSNNForwardLossNode
Members (18)
init · iOS 13.0+init
TypeScriptstatic initSourceLabelsWeightsLossDescriptor(source: MPSNNImageNode, labels: MPSNNImageNode, weights: MPSNNImageNode, descriptor: MPSCNNLossDescriptor): MPSNNForwardLossNode
Swift declarationconvenience init(source: MPSNNImageNode, labels: MPSNNImageNode, weights: MPSNNImageNode, lossDescriptor descriptor: MPSCNNLossDescriptor)
method · iOS 13.0+gradientFilter
TypeScriptgradientFilterWithSource(sourceGradient: MPSNNImageNode): MPSNNLossGradientNode
Swift declarationfunc gradientFilter(withSource sourceGradient: MPSNNImageNode) -> MPSNNLossGradientNode
method · iOS 13.0+gradientFilter
TypeScriptgradientFilterWithSources(sourceGradient: Array<MPSNNImageNode>): MPSNNLossGradientNode
Swift declarationfunc gradientFilter(withSources sourceGradient: [MPSNNImageNode]) -> MPSNNLossGradientNode
method · iOS 13.0+gradientFilters
TypeScriptgradientFiltersWithSource(sourceGradient: MPSNNImageNode): Array<MPSNNLossGradientNode>
Swift declarationfunc gradientFilters(withSource sourceGradient: MPSNNImageNode) -> [MPSNNLossGradientNode]
method · iOS 13.0+gradientFilters
TypeScriptgradientFiltersWithSources(sourceGradient: Array<MPSNNImageNode>): Array<MPSNNLossGradientNode>
Swift declarationfunc gradientFilters(withSources sourceGradient: [MPSNNImageNode]) -> [MPSNNLossGradientNode]
init · iOS 13.0+init
TypeScriptstatic initSourceLabelsLossDescriptor(source: MPSNNImageNode, labels: MPSNNImageNode, descriptor: MPSCNNLossDescriptor): MPSNNForwardLossNode
Swift declarationinit(source: MPSNNImageNode, labels: MPSNNImageNode, lossDescriptor descriptor: MPSCNNLossDescriptor)
init · iOS 13.0+init
TypeScriptstatic initSourceLabelsWeightsLossDescriptor93335(source: MPSNNImageNode, labels: MPSNNImageNode, weights: (MPSNNImageNode) | null, descriptor: MPSCNNLossDescriptor): MPSNNForwardLossNode
Swift declarationinit(source: MPSNNImageNode, labels: MPSNNImageNode, weights: MPSNNImageNode?, lossDescriptor descriptor: MPSCNNLossDescriptor)
init · iOS 13.0+init
TypeScriptstatic initSourcesLossDescriptor(sourceNodes: Array<MPSNNImageNode>, descriptor: MPSCNNLossDescriptor): MPSNNForwardLossNode
Swift declarationinit(sources sourceNodes: [MPSNNImageNode], lossDescriptor descriptor: MPSCNNLossDescriptor)
get · iOS 13.0+delta
TypeScriptget delta(): number
Swift declarationvar delta: Float { get }
get · iOS 13.0+epsilon
TypeScriptget epsilon(): number
Swift declarationvar epsilon: Float { get }
get · iOS 13.0+labelSmoothing
TypeScriptget labelSmoothing(): number
Swift declarationvar labelSmoothing: Float { get }
get · iOS 13.0+lossType
TypeScriptget lossType(): MPSCNNLossType
Swift declarationvar lossType: MPSCNNLossType { get }
get · iOS 13.0+numberOfClasses
TypeScriptget numberOfClasses(): number
Swift declarationvar numberOfClasses: Int { get }
get · iOS 13.0+propertyCallBack
TypeScriptget propertyCallBack(): (SDKHandle) | null
Swift declarationvar propertyCallBack: (any MPSNNLossCallback)? { get set }
set · iOS 13.0+propertyCallBack
TypeScriptset propertyCallBack(value: (SDKHandle) | null)
Swift declarationvar propertyCallBack: (any MPSNNLossCallback)? { get set }
get · iOS 14.0+reduceAcrossBatch
TypeScriptget reduceAcrossBatch(): boolean
Swift declarationvar reduceAcrossBatch: Bool { get }
get · iOS 13.0+reductionType
TypeScriptget reductionType(): MPSCNNReductionType
Swift declarationvar reductionType: MPSCNNReductionType { get }
get · iOS 13.0+weight
TypeScriptget weight(): number
Swift declarationvar weight: Float { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSNNForwardLossNode.init()
inherited init: cannot prove legal (class declares 4 custom initializers)
All MetalPerformanceShaders types →