
org.robovm.apple.metalps.MPSMatrixFullyConnected Maven / Gradle / Ivy
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.metalps;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.coregraphics.*;
import org.robovm.apple.metal.*;
/* */
/**/
/**
* @since Available in iOS 11.0 and later.
*/
/* */
/**/@Library("Metal") @NativeClass/* */
/**/public/* */ class /**/MPSMatrixFullyConnected/* */
extends /**/MPSMatrixBinaryKernel/* */
/**//* */ {
/**/public static class MPSMatrixFullyConnectedPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(MPSMatrixFullyConnected.class); }/* */
/**//* */
/**/
public MPSMatrixFullyConnected() {}
protected MPSMatrixFullyConnected(Handle h, long handle) { super(h, handle); }
protected MPSMatrixFullyConnected(SkipInit skipInit) { super(skipInit); }
@Method(selector = "initWithDevice:")
public MPSMatrixFullyConnected(MTLDevice device) { super((SkipInit) null); initObject(initWithDevice(device)); }
@Method(selector = "initWithCoder:device:")
public MPSMatrixFullyConnected(NSCoder aDecoder, MTLDevice device) { super((SkipInit) null); initObject(init(aDecoder, device)); }
/* */
/**/
@Property(selector = "sourceNumberOfFeatureVectors")
public native @MachineSizedUInt long getSourceNumberOfFeatureVectors();
@Property(selector = "setSourceNumberOfFeatureVectors:")
public native void setSourceNumberOfFeatureVectors(@MachineSizedUInt long v);
@Property(selector = "sourceInputFeatureChannels")
public native @MachineSizedUInt long getSourceInputFeatureChannels();
@Property(selector = "setSourceInputFeatureChannels:")
public native void setSourceInputFeatureChannels(@MachineSizedUInt long v);
@Property(selector = "sourceOutputFeatureChannels")
public native @MachineSizedUInt long getSourceOutputFeatureChannels();
@Property(selector = "setSourceOutputFeatureChannels:")
public native void setSourceOutputFeatureChannels(@MachineSizedUInt long v);
@Property(selector = "alpha")
public native double getAlpha();
@Property(selector = "setAlpha:")
public native void setAlpha(double v);
/* */
/**//* */
/**/
@Method(selector = "setNeuronType:parameterA:parameterB:parameterC:")
public native void setNeuronType(MPSCNNNeuronType neuronType, float parameterA, float parameterB, float parameterC);
@Method(selector = "neuronType")
public native MPSCNNNeuronType neuronType();
@Method(selector = "neuronParameterA")
public native float neuronParameterA();
@Method(selector = "neuronParameterB")
public native float neuronParameterB();
@Method(selector = "neuronParameterC")
public native float neuronParameterC();
@Method(selector = "initWithDevice:")
protected native @Pointer long initWithDevice(MTLDevice device);
@Method(selector = "encodeToCommandBuffer:inputMatrix:weightMatrix:biasVector:resultMatrix:")
public native void encode(MTLCommandBuffer commandBuffer, MPSMatrix inputMatrix, MPSMatrix weightMatrix, MPSVector biasVector, MPSMatrix resultMatrix);
@Method(selector = "initWithCoder:device:")
protected native @Pointer long init(NSCoder aDecoder, MTLDevice device);
@Method(selector = "copyWithZone:device:")
public native MPSMatrixFullyConnected copy(NSZone zone, MTLDevice device);
/* */
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy