NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MLCTensor(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MLCTensor |
alloc() |
static MLCTensor |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
boolean |
bindAndWriteDataToDevice(MLCTensorData data,
MLCDevice device)
Associates the given data to the tensor.
|
boolean |
bindOptimizerDataDeviceData(NSArray<? extends MLCTensorData> data,
NSArray<? extends MLCTensorOptimizerDeviceData> deviceData)
Associates the given optimizer data and device data buffers to the tensor.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
boolean |
copyDataFromDeviceMemoryToBytesLengthSynchronizeWithDevice(org.moe.natj.general.ptr.VoidPtr bytes,
long length,
boolean synchronizeWithDevice)
Copy tensor data from device memory to user specified memory
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSData |
data()
[@property] data
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
MLCTensorDescriptor |
descriptor()
[@property] descriptor
|
MLCDevice |
device()
[@property] device
|
static long |
hash_static() |
boolean |
hasValidNumerics()
Returns a Boolean value indicating whether the underlying data has valid floating-point numerics, i.e.
|
MLCTensor |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
label()
[@property] label
|
static MLCTensor |
new_objc() |
NSArray<? extends MLCTensorData> |
optimizerData()
[@property] optimizer buffers to use if tensor is used as a parameter
|
NSArray<? extends MLCTensorOptimizerDeviceData> |
optimizerDeviceData()
[@property] optimizer device buffers to use if tensor is used as a parameter
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setLabel(java.lang.String value)
[@property] label
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
synchronizeData()
Synchronize the data in host memory.
|
boolean |
synchronizeOptimizerData()
Synchronize the optimizer data in host memory.
|
MLCTensor |
tensorByDequantizingToTypeScaleBias(int type,
MLCTensor scale,
MLCTensor bias)
Converts a quantized tensor to a 32-bit floating-point tensor
Returns a de-quantized tensor
|
MLCTensor |
tensorByDequantizingToTypeScaleBiasAxis(int type,
MLCTensor scale,
MLCTensor bias,
long axis)
Converts a quantized tensor to a 32-bit floating-point tensor
Returns a de-quantized tensor
|
MLCTensor |
tensorByQuantizingToTypeScaleBias(int type,
float scale,
long bias)
Converts a 32-bit floating-point tensor with given scale and a zero point
Returns a quantized tensor
|
MLCTensor |
tensorByQuantizingToTypeScaleBiasAxis(int type,
MLCTensor scale,
MLCTensor bias,
long axis)
Converts a 32-bit floating-point tensor with given scale and a zero point
Returns a quantized tensor
|
long |
tensorID()
[@property] tensorID
|
static MLCTensor |
tensorWithDescriptor(MLCTensorDescriptor tensorDescriptor)
Create a MLCTensor object
|
static MLCTensor |
tensorWithDescriptorData(MLCTensorDescriptor tensorDescriptor,
MLCTensorData data)
Create a MLCTensor object
|
static MLCTensor |
tensorWithDescriptorFillWithData(MLCTensorDescriptor tensorDescriptor,
NSNumber fillData)
Create a MLCTensor object
|
static MLCTensor |
tensorWithDescriptorRandomInitializerType(MLCTensorDescriptor tensorDescriptor,
int randomInitializerType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithSequenceLengthFeatureChannelCountBatchSize(long sequenceLength,
long featureChannelCount,
long batchSize)
Create a MLCTensor object
|
static MLCTensor |
tensorWithSequenceLengthFeatureChannelCountBatchSizeData(long sequenceLength,
long featureChannelCount,
long batchSize,
MLCTensorData data)
Create a MLCTensor object
|
static MLCTensor |
tensorWithSequenceLengthFeatureChannelCountBatchSizeRandomInitializerType(long sequenceLength,
long featureChannelCount,
long batchSize,
int randomInitializerType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithSequenceLengthsSortedSequencesFeatureChannelCountBatchSizeData(NSArray<? extends NSNumber> sequenceLengths,
boolean sortedSequences,
long featureChannelCount,
long batchSize,
MLCTensorData data)
Create a MLCTensor object
|
static MLCTensor |
tensorWithSequenceLengthsSortedSequencesFeatureChannelCountBatchSizeRandomInitializerType(NSArray<? extends NSNumber> sequenceLengths,
boolean sortedSequences,
long featureChannelCount,
long batchSize,
int randomInitializerType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithShape(NSArray<? extends NSNumber> shape)
Create a MLCTensor object
|
static MLCTensor |
tensorWithShapeDataDataType(NSArray<? extends NSNumber> shape,
MLCTensorData data,
int dataType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithShapeDataType(NSArray<? extends NSNumber> shape,
int dataType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithShapeFillWithDataDataType(NSArray<? extends NSNumber> shape,
NSNumber fillData,
int dataType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithShapeRandomInitializerType(NSArray<? extends NSNumber> shape,
int randomInitializerType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithShapeRandomInitializerTypeDataType(NSArray<? extends NSNumber> shape,
int randomInitializerType,
int dataType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithWidthHeightFeatureChannelCountBatchSize(long width,
long height,
long featureChannelCount,
long batchSize)
Create a MLCTensor object
|
static MLCTensor |
tensorWithWidthHeightFeatureChannelCountBatchSizeData(long width,
long height,
long featureChannelCount,
long batchSize,
MLCTensorData data)
Create a MLCTensor object
|
static MLCTensor |
tensorWithWidthHeightFeatureChannelCountBatchSizeDataDataType(long width,
long height,
long featureChannelCount,
long batchSize,
MLCTensorData data,
int dataType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithWidthHeightFeatureChannelCountBatchSizeFillWithDataDataType(long width,
long height,
long featureChannelCount,
long batchSize,
float fillData,
int dataType)
Create a MLCTensor object
|
static MLCTensor |
tensorWithWidthHeightFeatureChannelCountBatchSizeRandomInitializerType(long width,
long height,
long featureChannelCount,
long batchSize,
int randomInitializerType)
Create a MLCTensor object
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static MLCTensor alloc()
public static MLCTensor allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public boolean bindAndWriteDataToDevice(MLCTensorData data, MLCDevice device)
The caller must guarantee the lifetime of the underlying memory of \p data for the entirety of the tensor's lifetime. For input tensors, we recommend that the bindAndwriteData method provided by MLCTrainingGraph and MLCInferenceGraph be used. This method should only be used to allocate and copy data to device memory for tensors that are typically layer parameters such as weights, bias for convolution layers, beta, gamma for normalization layers.
data - The data to associated with the tensordevice - The compute devicepublic boolean bindOptimizerDataDeviceData(NSArray<? extends MLCTensorData> data, NSArray<? extends MLCTensorOptimizerDeviceData> deviceData)
The caller must guarantee the lifetime of the underlying memory of \p data for the entirety of the tensor's lifetime. The \p deviceData buffers are allocated by MLCompute. This method must be called before executeOptimizerUpdateWithOptions or executeWithInputsData is called for the training graph.
data - The optimizer data to be associated with the tensordeviceData - The optimizer device data to be associated with the tensorpublic static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public boolean copyDataFromDeviceMemoryToBytesLengthSynchronizeWithDevice(org.moe.natj.general.ptr.VoidPtr bytes,
long length,
boolean synchronizeWithDevice)
Before copying tensor data from device memory, one may need to synchronize the device memory for example when device is the GPU. The synchronizeWithDevice argumet can be set appropraitely to indicate this. For CPU this is ignored. If the tensor has been specified in outputs of a graph using addOutputs, synchronizeWithDevice should be set to NO. NOTE: This method should only be called once the graph that this tensor is used with has finished execution; Otherwise the results in device memory may not be up to date. synchronizeWithDevice must be set to NO when this method is called from a completion callback for GPU.
bytes - The user specified data in which to copylength - The size in bytes to copysynchronizeWithDevice - Whether to synchronize device memory if device is GPUpublic java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic NSData data()
The tensor data
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public MLCTensorDescriptor descriptor()
The tensor descriptor
public MLCDevice device()
The device associated with this tensor.
public boolean hasValidNumerics()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public java.lang.String label()
A string to help identify this object.
public static MLCTensor new_objc()
public NSArray<? extends MLCTensorData> optimizerData()
These are the host side optimizer (momentum and velocity) buffers which developers can query and initialize
When customizing optimizer data, the contents of these buffers must be initialized before executing optimizer update for a graph.
public NSArray<? extends MLCTensorOptimizerDeviceData> optimizerDeviceData()
These are the device side optimizer (momentum and velocity) buffers which developers can query
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setLabel(java.lang.String value)
A string to help identify this object.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public boolean synchronizeData()
Synchronize the data in host memory i.e. tensor.data with latest contents in device memory This should only be called once the graph that this tensor is used with has finished execution; Otherwise the results in device memory may not be up to date. NOTE: This method should not be called from a completion callback when device is the GPU.
public boolean synchronizeOptimizerData()
Synchronize the optimizer data in host memory with latest contents in device memory This should only be called once the graph that this tensor is used with has finished execution; Otherwise the results in device memory may not be up to date. NOTE: This method should not be called from a completion callback when device is the GPU.
public MLCTensor tensorByDequantizingToTypeScaleBias(int type, MLCTensor scale, MLCTensor bias)
type - The de-quantized data type. Must be MLCFloat32scale - The scale thst was used for the quantized databias - The offset value that maps to float zero used for the quantized datapublic MLCTensor tensorByDequantizingToTypeScaleBiasAxis(int type, MLCTensor scale, MLCTensor bias, long axis)
type - The de-quantized data type. Must be MLCFloat32scale - The scale thst was used for the quantized databias - The offset value that maps to float zero used for the quantized dataaxis - The dimension on which to apply per-channel quantizationpublic MLCTensor tensorByQuantizingToTypeScaleBias(int type, float scale, long bias)
type - The quantized data type. Must be MLCDataTypeInt8, MLCDataTypeUInt8 or MLCDataTypeInt32scale - The scale to apply in quantizationbias - The offset value that maps to float zeropublic MLCTensor tensorByQuantizingToTypeScaleBiasAxis(int type, MLCTensor scale, MLCTensor bias, long axis)
type - The quantized data type. Must be MLCDataTypeInt8, MLCDataTypeUInt8 or MLCDataTypeInt32scale - The scale to apply in quantizationbias - The offset value that maps to float zeroaxis - The dimension on which to apply per-channel quantizationpublic long tensorID()
The tensor ID
A unique number to identify each tensor. Assigned when the tensor is created.
public static MLCTensor tensorWithDescriptor(MLCTensorDescriptor tensorDescriptor)
Create a tensor object without any data
public static MLCTensor tensorWithDescriptorData(MLCTensorDescriptor tensorDescriptor, MLCTensorData data)
Create a tensor object with a MLCTensorData object that specifies the tensor data buffer
tensorDescriptor - The tensor descriptordata - The random initializer typepublic static MLCTensor tensorWithDescriptorFillWithData(MLCTensorDescriptor tensorDescriptor, NSNumber fillData)
Create a tensor object with a MLCTensorData object that specifies the tensor data buffer
tensorDescriptor - The tensor descriptorfillData - The scalar data to fill to tensor withpublic static MLCTensor tensorWithDescriptorRandomInitializerType(MLCTensorDescriptor tensorDescriptor, int randomInitializerType)
Create a tensor object initialized with a random initializer such as Glorot Uniform.
tensorDescriptor - The tensor descriptorrandomInitializerType - The random initializer typepublic static MLCTensor tensorWithSequenceLengthFeatureChannelCountBatchSize(long sequenceLength, long featureChannelCount, long batchSize)
Create a tensor typically used by a recurrent layer The tensor data type is MLCDataTypeFloat32.
sequenceLength - The length of sequences stored in the tensorfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizepublic static MLCTensor tensorWithSequenceLengthFeatureChannelCountBatchSizeData(long sequenceLength, long featureChannelCount, long batchSize, MLCTensorData data)
Create a tensor typically used by a recurrent layer The tensor data type is MLCDataTypeFloat32.
sequenceLength - The length of sequences stored in the tensorfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizedata - The tensor datapublic static MLCTensor tensorWithSequenceLengthFeatureChannelCountBatchSizeRandomInitializerType(long sequenceLength, long featureChannelCount, long batchSize, int randomInitializerType)
Create a tensor typically used by a recurrent layer The tensor data type is MLCDataTypeFloat32.
sequenceLength - The length of sequences stored in the tensorfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizerandomInitializerType - The random initializer typepublic static MLCTensor tensorWithSequenceLengthsSortedSequencesFeatureChannelCountBatchSizeData(NSArray<? extends NSNumber> sequenceLengths, boolean sortedSequences, long featureChannelCount, long batchSize, MLCTensorData data)
Create a tensor of variable length sequences typically used by a recurrent layer The tensor data type is MLCDataTypeFloat32.
sequenceLengths - An array of sequence lengthssortedSequences - A flag to indicate if the sequence lengths are sorted. If yes, they must be sorted in descending orderfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizedata - The tensor datapublic static MLCTensor tensorWithSequenceLengthsSortedSequencesFeatureChannelCountBatchSizeRandomInitializerType(NSArray<? extends NSNumber> sequenceLengths, boolean sortedSequences, long featureChannelCount, long batchSize, int randomInitializerType)
Create a tensor of variable length sequences typically used by a recurrent layer The tensor data type is MLCDataTypeFloat32.
sequenceLengths - An array of sequence lengthssortedSequences - A flag to indicate if the sequence lengths are sorted. If yes, they must be sorted in descending orderfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizerandomInitializerType - The random initializer typepublic static MLCTensor tensorWithShape(NSArray<? extends NSNumber> shape)
Create a tensor object without any data. The tensor data type is MLCDataTypeFloat32.
shape - The tensor shapepublic static MLCTensor tensorWithShapeDataDataType(NSArray<? extends NSNumber> shape, MLCTensorData data, int dataType)
Create a tensor object with data
shape - The tensor shapedata - The tensor datadataType - The tensor data typepublic static MLCTensor tensorWithShapeDataType(NSArray<? extends NSNumber> shape, int dataType)
Create a tensor object without any data
shape - The tensor shapedataType - The tensor data typepublic static MLCTensor tensorWithShapeFillWithDataDataType(NSArray<? extends NSNumber> shape, NSNumber fillData, int dataType)
Create a tensor object with data
shape - The tensor shapefillData - The scalar value to initialize the tensor data withdataType - The tensor data typepublic static MLCTensor tensorWithShapeRandomInitializerType(NSArray<? extends NSNumber> shape, int randomInitializerType)
Create a tensor object initialized with a random initializer such as Glorot Uniform. The tensor data type is MLCDataTypeFloat32
shape - The tensor shaperandomInitializerType - The random initializer typepublic static MLCTensor tensorWithShapeRandomInitializerTypeDataType(NSArray<? extends NSNumber> shape, int randomInitializerType, int dataType)
Create a tensor object initialized with a random initializer such as Glorot Uniform. The tensor data type is MLCDataTypeFloat32
shape - The tensor shaperandomInitializerType - The random initializer typedataType - The tensor data typepublic static MLCTensor tensorWithWidthHeightFeatureChannelCountBatchSize(long width, long height, long featureChannelCount, long batchSize)
Create a NCHW tensor object with tensor data type = MLCDataTypeFloat32
width - The tensor widthheight - The tensor heightfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizepublic static MLCTensor tensorWithWidthHeightFeatureChannelCountBatchSizeData(long width, long height, long featureChannelCount, long batchSize, MLCTensorData data)
Create a NCHW tensor object with a tensor data object The tensor data type is MLCDataTypeFloat32.
width - The tensor widthheight - The tensor heightfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizedata - The tensor datapublic static MLCTensor tensorWithWidthHeightFeatureChannelCountBatchSizeDataDataType(long width, long height, long featureChannelCount, long batchSize, MLCTensorData data, int dataType)
Create a NCHW tensor object with a tensor data object The tensor data type is MLCDataTypeFloat32.
width - The tensor widthheight - The tensor heightfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizedata - The tensor datadataType - The tensor data typepublic static MLCTensor tensorWithWidthHeightFeatureChannelCountBatchSizeFillWithDataDataType(long width, long height, long featureChannelCount, long batchSize, float fillData, int dataType)
Create a NCHW tensor object initialized with a scalar value
width - The tensor widthheight - The tensor heightfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizefillData - The scalar value to initialize the tensor data withdataType - The tensor data typepublic static MLCTensor tensorWithWidthHeightFeatureChannelCountBatchSizeRandomInitializerType(long width, long height, long featureChannelCount, long batchSize, int randomInitializerType)
Create a NCHW tensor object initialized with a random initializer type. The tensor data type is MLCDataTypeFloat32
width - The tensor widthheight - The tensor heightfeatureChannelCount - Number of feature channelsbatchSize - The tensor batch sizerandomInitializerType - The random initializer typepublic static long version_static()