Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/experimental/swift/Sources/
DInterpreter.swift99 let maxIndex = inputTensorCount - 1 in input() variable
100 guard case 0...maxIndex = index else { in input()
101 throw InterpreterError.invalidTensorIndex(index: index, maxIndex: maxIndex) in input()
146 let maxIndex = outputTensorCount - 1 in output() variable
147 guard case 0...maxIndex = index else { in output()
148 throw InterpreterError.invalidTensorIndex(index: index, maxIndex: maxIndex) in output()
195 let maxIndex = inputTensorCount - 1 in resizeInput() variable
196 guard case 0...maxIndex = index else { in resizeInput()
197 throw InterpreterError.invalidTensorIndex(index: index, maxIndex: maxIndex) in resizeInput()
220 let maxIndex = inputTensorCount - 1 in copy() variable
[all …]
DInterpreterError.swift19 case invalidTensorIndex(index: Int, maxIndex: Int)
38 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/tensorflow/tensorflow/lite/experimental/swift/Tests/
DInterpreterTests.swift85 let maxIndex = AddModel.inputTensorCount - 1 in testInterpreter_InputTensorAtIndex_ThrowsInvalidIndex() variable
88 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testInterpreter_InputTensorAtIndex_ThrowsInvalidIndex()
122 let maxIndex = AddModel.outputTensorCount - 1 in testInterpreter_OutputTensorAtIndex_ThrowsInvalidIndex() variable
125 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testInterpreter_OutputTensorAtIndex_ThrowsInvalidIndex()
146 let maxIndex = AddModel.inputTensorCount - 1 in testInterpreter_ResizeInputTensorAtIndexToShape_ThrowsInvalidIndex() variable
149 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testInterpreter_ResizeInputTensorAtIndexToShape_ThrowsInvalidIndex()
166 let maxIndex = AddModel.inputTensorCount - 1 in testInterpreter_CopyDataToInputTensorAtIndex_ThrowsInvalidIndex() variable
169 expected: .invalidTensorIndex(index: AddModel.invalidIndex, maxIndex: maxIndex) in testInterpreter_CopyDataToInputTensorAtIndex_ThrowsInvalidIndex()
/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/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
62 return cont->maxIndex; in chArrayCount()
67 if(cont->currIndex >= cont->maxIndex) { in chArrayUNext()
84 if(cont->currIndex >= cont->maxIndex) { in chArrayNext()
147 int32_t maxIndex; member
163 return ucont->maxIndex; in uchArrayCount()
168 if(ucont->currIndex >= ucont->maxIndex) { in uchArrayUNext()
204 cont->maxIndex = size; in getchArrayEnum()
275 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/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/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/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/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.java134 private final int maxIndex = keyToIndex().size(); in createEntrySet() local
138 for (index++; index < maxIndex; index++) { in createEntrySet()
/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.y2147 const GLint maxIndex = 1 << INST_INDEX_BITS;
2151 assert(index <= maxIndex);
2152 (void) maxIndex;
2187 const GLint maxIndex = (1 << INST_INDEX_BITS) - 1;
2192 assert(index <= maxIndex);
2193 (void) maxIndex;
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleImageTests.cpp564 const int maxIndex = 3; // 4 components max in getColorStr() local
572 << (i < maxIndex ? ", " : ""); in getColorStr()
575 for (int i = numComponents; i < maxIndex + 1; ++i) in getColorStr()
577 str << (i == maxIndex ? 1 : 0) in getColorStr()
578 << (i < maxIndex ? ", " : ""); in getColorStr()
DvktPipelineRenderToImageTests.cpp779 const int maxIndex = findIndexOfMaxComponent(size); in getReducedImageSize() local
780 const int reducedSize = size[maxIndex] >> 1; in getReducedImageSize()
786 if (maxIndex < 2) in getReducedImageSize()
788 else if (maxIndex == 3 && reducedSize >= NUM_CUBE_FACES) in getReducedImageSize()
795 size[maxIndex] = reducedSize; in getReducedImageSize()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPMetaImpl.java1310 int maxIndex = insert ? arrayNode.getChildrenLength() + 1 : arrayNode.getChildrenLength();
1313 itemIndex = maxIndex;
1316 if (1 <= itemIndex && itemIndex <= maxIndex)
/external/deqp/modules/gles31/functional/
Des31fVertexAttributeBindingTests.cpp1507 glw::GLint maxIndex = -1; in iterate() local
1510 gl.glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &maxIndex); in iterate()
1513 largeIndex = maxIndex + 1; in iterate()
1516 if (maxIndex == -1 || maxIndex == 0x7FFFFFFF) in iterate()

12