Home
last modified time | relevance | path

Searched refs:SupportPreconditions (Results 1 – 20 of 20) sorted by relevance

/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/label/
DTensorLabel.java27 import org.tensorflow.lite.support.common.SupportPreconditions;
77 SupportPreconditions.checkNotNull(axisLabels, "Axis labels cannot be null."); in TensorLabel()
78 SupportPreconditions.checkNotNull(tensorBuffer, "Tensor Buffer cannot be null."); in TensorLabel()
84 SupportPreconditions.checkArgument( in TensorLabel()
86 SupportPreconditions.checkNotNull(entry.getValue(), "Label list is null on axis " + axis); in TensorLabel()
87 SupportPreconditions.checkArgument( in TensorLabel()
117 SupportPreconditions.checkArgument( in getMapWithTensorBuffer()
134 SupportPreconditions.checkNotNull(labels, "Label list should never be null"); in getMapWithTensorBuffer()
161 SupportPreconditions.checkState( in getMapWithFloatValue()
166 SupportPreconditions.checkState(labels.size() == data.length); in getMapWithFloatValue()
[all …]
DLabelUtil.java23 import org.tensorflow.lite.support.common.SupportPreconditions;
46 SupportPreconditions.checkNotNull(tensorBuffer, "Given tensor should not be null"); in mapValueToLabels()
47 SupportPreconditions.checkNotNull(labels, "Given labels should not be null"); in mapValueToLabels()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/common/ops/
DNormalizeOp.java20 import org.tensorflow.lite.support.common.SupportPreconditions;
73 SupportPreconditions.checkArgument(stddev != 0.0f, "Stddev cannot be zero."); in NormalizeOp()
107 SupportPreconditions.checkNotNull(mean, "Mean cannot be null"); in NormalizeOp()
108 SupportPreconditions.checkNotNull(stddev, "Stddev cannot be null"); in NormalizeOp()
109 SupportPreconditions.checkArgument( in NormalizeOp()
112 SupportPreconditions.checkArgument(mean.length > 0, "Means and stddevs are empty."); in NormalizeOp()
118 SupportPreconditions.checkArgument(this.stddev[i] != 0, "Stddev cannot be zero."); in NormalizeOp()
141 SupportPreconditions.checkArgument( in apply()
DCastOp.java19 import org.tensorflow.lite.support.common.SupportPreconditions;
42 SupportPreconditions.checkArgument( in CastOp()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/tensorbuffer/
DTensorBufferFloat.java21 import org.tensorflow.lite.support.common.SupportPreconditions;
88 SupportPreconditions.checkNotNull(src, "The array to be loaded cannot be null."); in loadArray()
89 SupportPreconditions.checkArgument( in loadArray()
101 SupportPreconditions.checkNotNull(src, "The array to be loaded cannot be null."); in loadArray()
102 SupportPreconditions.checkArgument( in loadArray()
DTensorBufferUint8.java20 import org.tensorflow.lite.support.common.SupportPreconditions;
90 SupportPreconditions.checkNotNull(src, "The array to be loaded cannot be null."); in loadArray()
91 SupportPreconditions.checkArgument( in loadArray()
107 SupportPreconditions.checkNotNull(src, "The array to be loaded cannot be null."); in loadArray()
108 SupportPreconditions.checkArgument( in loadArray()
DTensorBuffer.java18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;
19 import static org.tensorflow.lite.support.common.SupportPreconditions.checkNotNull;
20 import static org.tensorflow.lite.support.common.SupportPreconditions.checkState;
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/label/ops/
DLabelAxisOp.java25 import org.tensorflow.lite.support.common.SupportPreconditions;
44 SupportPreconditions.checkNotNull(buffer, "Tensor buffer cannot be null."); in apply()
58 SupportPreconditions.checkNotNull(context, "Context cannot be null."); in addAxisLabel()
59 SupportPreconditions.checkNotNull(filePath, "File path cannot be null."); in addAxisLabel()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/common/
DFileUtil.java70 SupportPreconditions.checkNotNull(context, "Context cannot be null."); in loadLabels()
71 SupportPreconditions.checkNotNull(filePath, "File path cannot be null."); in loadLabels()
157 SupportPreconditions.checkNotNull(context, "Context should not be null."); in loadMappedFile()
158 SupportPreconditions.checkNotNull(filePath, "File path cannot be null."); in loadMappedFile()
DSupportPreconditions.java21 public final class SupportPreconditions { class
181 private SupportPreconditions() { in SupportPreconditions() method in SupportPreconditions
DSequentialProcessor.java68 SupportPreconditions.checkNotNull(op, "Adding null Op is illegal."); in add()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/
DImageProcessor.java25 import org.tensorflow.lite.support.common.SupportPreconditions;
186 SupportPreconditions.checkState( in updateNumberOfRotations()
191 SupportPreconditions.checkElementIndex(occurrence, indexes.size(), "occurrence"); in updateNumberOfRotations()
DBitmapContainer.java18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;
19 import static org.tensorflow.lite.support.common.SupportPreconditions.checkNotNull;
DTensorImage.java18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;
DColorSpaceType.java18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;
DBoundingBoxUtil.java18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/
DTensorOperatorWrapper.java20 import org.tensorflow.lite.support.common.SupportPreconditions;
52 SupportPreconditions.checkNotNull(image, "Op cannot apply on null image."); in apply()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/model/
DModel.java27 import org.tensorflow.lite.support.common.SupportPreconditions;
170 SupportPreconditions.checkNotEmpty( in createModel()
197 SupportPreconditions.checkArgument( in createModel()
/external/tflite-support/tensorflow_lite_support/java/
DBUILD63 srcs = ["src/java/org/tensorflow/lite/support/common/SupportPreconditions.java"],
72 srcs = ["src/java/org/tensorflow/lite/support/common/SupportPreconditions.java"],
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/segmenter/
DOutputType.java20 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;