Searched refs:SupportPreconditions (Results 1 – 20 of 20) sorted by relevance
27 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 …]
23 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()
20 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()
19 import org.tensorflow.lite.support.common.SupportPreconditions;42 SupportPreconditions.checkArgument( in CastOp()
21 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()
20 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()
18 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;
25 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()
70 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()
21 public final class SupportPreconditions { class181 private SupportPreconditions() { in SupportPreconditions() method in SupportPreconditions
68 SupportPreconditions.checkNotNull(op, "Adding null Op is illegal."); in add()
25 import org.tensorflow.lite.support.common.SupportPreconditions;186 SupportPreconditions.checkState( in updateNumberOfRotations()191 SupportPreconditions.checkElementIndex(occurrence, indexes.size(), "occurrence"); in updateNumberOfRotations()
18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;19 import static org.tensorflow.lite.support.common.SupportPreconditions.checkNotNull;
18 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;
20 import org.tensorflow.lite.support.common.SupportPreconditions;52 SupportPreconditions.checkNotNull(image, "Op cannot apply on null image."); in apply()
27 import org.tensorflow.lite.support.common.SupportPreconditions;170 SupportPreconditions.checkNotEmpty( in createModel()197 SupportPreconditions.checkArgument( in createModel()
63 srcs = ["src/java/org/tensorflow/lite/support/common/SupportPreconditions.java"],72 srcs = ["src/java/org/tensorflow/lite/support/common/SupportPreconditions.java"],
20 import static org.tensorflow.lite.support.common.SupportPreconditions.checkArgument;