Home
last modified time | relevance | path

Searched refs:maxIndex (Results 1 – 25 of 51) sorted by relevance

123

/external/tensorflow/tensorflow/lite/experimental/swift/Sources/
DInterpreter.swift107 let maxIndex = inputTensorCount - 1 in input() variable
108 guard case 0...maxIndex = index else { in input()
109 throw InterpreterError.invalidTensorIndex(index: index, maxIndex: maxIndex) in input()
153 let maxIndex = outputTensorCount - 1 in output() variable
154 guard case 0...maxIndex = index else { in output()
155 throw InterpreterError.invalidTensorIndex(index: index, maxIndex: maxIndex) in output()
200 let maxIndex = inputTensorCount - 1 in resizeInput() variable
201 guard case 0...maxIndex = index else { in resizeInput()
202 throw InterpreterError.invalidTensorIndex(index: index, maxIndex: maxIndex) in resizeInput()
225 let maxIndex = inputTensorCount - 1 in copy() variable
[all …]
DInterpreterError.swift19 case invalidTensorIndex(index: Int, maxIndex: Int)
36 case .invalidTensorIndex(let index, let maxIndex):
/external/swiftshader/src/OpenGL/libGLES_CM/
DIndexDataManager.cpp63 void computeRange(const IndexType *indices, GLsizei count, GLuint *minIndex, GLuint *maxIndex) in computeRange() argument
66 *maxIndex = indices[0]; in computeRange()
71 if(*maxIndex < indices[i]) *maxIndex = indices[i]; in computeRange()
75 …d computeRange(GLenum type, const void *indices, GLsizei count, GLuint *minIndex, GLuint *maxIndex) in computeRange() argument
79 computeRange(static_cast<const GLubyte*>(indices), count, minIndex, maxIndex); in computeRange()
83 computeRange(static_cast<const GLushort*>(indices), count, minIndex, maxIndex); in computeRange()
113 computeRange(type, indices, count, &translated->minIndex, &translated->maxIndex); in prepareIndexData()
135 computeRange(type, indices, count, &translated->minIndex, &translated->maxIndex); in prepareIndexData()
DIndexDataManager.h31 unsigned int maxIndex; member
/external/eigen/doc/examples/
DTutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp12 MatrixXf::Index maxIndex; in main() local
13 float maxNorm = mat.colwise().sum().maxCoeff(&maxIndex); in main()
15 std::cout << "Maximum sum at position " << maxIndex << std::endl; in main()
18 std::cout << mat.col( maxIndex ) << std::endl; in main()
/external/tensorflow/tensorflow/lite/experimental/swift/Tests/
DInterpreterTests.swift108 let maxIndex = AddModel.inputTensorCount - 1 in testInputTensorAtIndex_ThrowsInvalidIndex() variable
111 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testInputTensorAtIndex_ThrowsInvalidIndex()
145 let maxIndex = AddModel.outputTensorCount - 1 in testOutputTensorAtIndex_ThrowsInvalidIndex() variable
148 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testOutputTensorAtIndex_ThrowsInvalidIndex()
169 let maxIndex = AddModel.inputTensorCount - 1 in testResizeInputTensorAtIndexToShape_ThrowsInvalidIndex() variable
172 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testResizeInputTensorAtIndexToShape_ThrowsInvalidIndex()
189 let maxIndex = AddModel.inputTensorCount - 1 in testCopyDataToInputTensorAtIndex_ThrowsInvalidIndex() variable
192 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testCopyDataToInputTensorAtIndex_ThrowsInvalidIndex()
/external/swiftshader/src/OpenGL/libGLESv2/
DIndexDataManager.cpp196 void computeRange(const IndexType *indices, GLsizei count, GLuint *minIndex, GLuint *maxIndex, std:… in computeRange() argument
198 *maxIndex = 0; in computeRange()
209 if(*maxIndex < indices[i]) *maxIndex = indices[i]; in computeRange()
213 …num type, const void *indices, GLsizei count, GLuint *minIndex, GLuint *maxIndex, std::vector<GLsi… in computeRange() argument
217 computeRange(static_cast<const GLubyte*>(indices), count, minIndex, maxIndex, restartIndices); in computeRange()
221 computeRange(static_cast<const GLuint*>(indices), count, minIndex, maxIndex, restartIndices); in computeRange()
225 computeRange(static_cast<const GLushort*>(indices), count, minIndex, maxIndex, restartIndices); in computeRange()
293 computeRange(type, indices, count, &translated->minIndex, &translated->maxIndex, restartIndices); in prepareIndexData()
354 if(translated->minIndex < start || translated->maxIndex > end) in prepareIndexData()
356 …ded: [%d -> %d]. Range used: [%d -> %d].", start, end, translated->minIndex, translated->maxIndex); in prepareIndexData()
DIndexDataManager.h33 unsigned int maxIndex; member
/external/icu/icu4c/source/test/cintltst/
Duenumtst.c41 int32_t maxIndex; member
63 return cont->maxIndex; in chArrayCount()
69 if(cont->currIndex >= cont->maxIndex) { in chArrayUNext()
87 if(cont->currIndex >= cont->maxIndex) { in chArrayNext()
151 int32_t maxIndex; member
168 return ucont->maxIndex; in uchArrayCount()
174 if(ucont->currIndex >= ucont->maxIndex) { in uchArrayUNext()
211 cont->maxIndex = size; in getchArrayEnum()
282 ucont->maxIndex = size; in getuchArrayEnum()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DCorrelation.java72 int maxIndex = -1; in computeCorrelation() local
86 maxIndex = i; in computeCorrelation()
92 log(String.format(" Maxvalue %f, max Index : %d/%d (%d) minIndex = %d", maxValue, maxIndex, in computeCorrelation()
109 mEstimatedLatencySamples = maxIndex * groupSize; in computeCorrelation()
/external/angle/src/common/
Dutilities.cpp36 IndexType maxIndex = 0; in ComputeTypedIndexRange() local
48 maxIndex = indices[i]; in ComputeTypedIndexRange()
63 if (maxIndex < indices[i]) in ComputeTypedIndexRange()
65 maxIndex = indices[i]; in ComputeTypedIndexRange()
74 maxIndex = indices[0]; in ComputeTypedIndexRange()
83 if (maxIndex < indices[i]) in ComputeTypedIndexRange()
85 maxIndex = indices[i]; in ComputeTypedIndexRange()
90 return gl::IndexRange(static_cast<size_t>(minIndex), static_cast<size_t>(maxIndex), in ComputeTypedIndexRange()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DOpenTypeTableWriter.java52 int maxIndex = length(); in dumpTable() local
54 for (int i = 0; i < maxIndex; i += 1) { in dumpTable()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DAbstractRealVector.java327 int maxIndex = -1; in getMaxIndex() local
333 maxIndex = entry.getIndex(); in getMaxIndex()
337 return maxIndex; in getMaxIndex()
344 final int maxIndex = getMaxIndex(); in getMaxValue() local
345 return maxIndex < 0 ? Double.NaN : getEntry(maxIndex); in getMaxValue()
/external/clang/utils/ABITest/
DABITestGen.py595 if opts.maxIndex is None:
597 opts.maxIndex = 10000000
599 opts.maxIndex = ftg.cardinality
600 opts.maxIndex = min(opts.maxIndex, ftg.cardinality)
601 opts.minIndex = max(0,min(opts.maxIndex-1, opts.minIndex))
603 opts.count = min(opts.count, opts.maxIndex-opts.minIndex)
663 index = opts.minIndex + int((opts.maxIndex-opts.minIndex) * random.random())
/external/angle/src/libANGLE/renderer/vulkan/
DUtilsVk.h54 uint32_t maxIndex = 0; member
61 uint32_t maxIndex = 0; member
255 uint32_t maxIndex = 0; member
263 uint32_t maxIndex = 0; member
/external/skia/src/codec/
DSkIcoCodec.cpp172 int maxIndex = 0; in MakeFromStream() local
179 maxIndex = i; in MakeFromStream()
183 auto maxInfo = codecs->operator[](maxIndex)->getEncodedInfo().copy(); in MakeFromStream()
/external/skqp/src/codec/
DSkIcoCodec.cpp172 int maxIndex = 0; in MakeFromStream() local
179 maxIndex = i; in MakeFromStream()
183 auto maxInfo = codecs->operator[](maxIndex)->getEncodedInfo().copy(); in MakeFromStream()
/external/angle/src/libANGLE/renderer/vulkan/shaders/src/
DConvertIndex.comp53 uint maxIndex;
67 uint maxIndex;
107 uint endIndex = firstIndex + maxIndex;
/external/icu/icu4c/source/test/letest/
Dcletest.c701 le_int32 minIndex = 0x7FFFFFFF, maxIndex = -1; in GlyphToCharTest() local
706 if (ix > maxIndex) { in GlyphToCharTest()
707 maxIndex = ix; in GlyphToCharTest()
721 charIndex = maxIndex + 1; in GlyphToCharTest()
Dletest.cpp931 le_int32 minIndex = 0x7FFFFFFF, maxIndex = -1; in GlyphToCharTest() local
936 if (ix > maxIndex) { in GlyphToCharTest()
937 maxIndex = ix; in GlyphToCharTest()
951 charIndex = maxIndex + 1; in GlyphToCharTest()
/external/guava/guava/src/com/google/common/collect/
DDenseImmutableTable.java124 private final int maxIndex = keyToIndex().size(); in entryIterator() local
128 for (index++; index < maxIndex; index++) { in entryIterator()
/external/guava/android/guava/src/com/google/common/collect/
DDenseImmutableTable.java125 private final int maxIndex = keyToIndex().size(); in entryIterator() local
129 for (index++; index < maxIndex; index++) { in entryIterator()
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/examples/
DLabelImage.java67 int bestLabelIdx = maxIndex(labelProbabilities); in main()
130 private static int maxIndex(float[] probabilities) { in maxIndex() method in LabelImage
/external/deqp/modules/gles2/functional/
Des2fNegativeShaderApiTests.cpp397 GLuint maxIndex = m_context.getContextInfo().getInt(GL_MAX_VERTEX_ATTRIBS); in init()
401 glBindAttribLocation(program, maxIndex, "test"); in init()
406 glBindAttribLocation(program, maxIndex-1, "gl_test"); in init()
411 glBindAttribLocation(-1, maxIndex-1, "test"); in init()
416 glBindAttribLocation(shader, maxIndex-1, "test"); in init()
/external/mesa3d/src/mesa/program/
Dprogram_parse.y2151 const GLint maxIndex = 1 << INST_INDEX_BITS;
2155 assert(index <= maxIndex);
2156 (void) maxIndex;
2191 const GLint maxIndex = (1 << INST_INDEX_BITS) - 1;
2196 assert(index <= maxIndex);
2197 (void) maxIndex;

123