Home
last modified time | relevance | path

Searched refs:GetArrayLength (Results 1 – 25 of 68) sorted by relevance

123

/external/tensorflow/tensorflow/java/src/main/native/
Dsession_jni.cc40 jint len = env->GetArrayLength(src_array); in resolveHandles()
93 static_cast<size_t>(env->GetArrayLength(config)), status); in Java_org_tensorflow_Session_allocate2()
141 const jint ninputs = env->GetArrayLength(input_tensor_handles); in Java_org_tensorflow_Session_run()
142 const jint noutputs = env->GetArrayLength(output_tensor_handles); in Java_org_tensorflow_Session_run()
143 const jint ntargets = env->GetArrayLength(target_op_handles); in Java_org_tensorflow_Session_run()
168 size_t sz = env->GetArrayLength(jrun_options); in Java_org_tensorflow_Session_run()
Dgraph_operation_builder_jni.cc99 const size_t n = static_cast<size_t>(env->GetArrayLength(op_handles)); in Java_org_tensorflow_GraphOperationBuilder_addInputList()
100 if (env->GetArrayLength(indices) != n) { in Java_org_tensorflow_GraphOperationBuilder_addInputList()
104 n, env->GetArrayLength(indices)); in Java_org_tensorflow_GraphOperationBuilder_addInputList()
154 TF_SetAttrString(d, cname, cvalue, env->GetArrayLength(value)); in Java_org_tensorflow_GraphOperationBuilder_setAttrString()
187 const int n = env->GetArrayLength(value); \
231 const int n = env->GetArrayLength(tensor_handles); in Java_org_tensorflow_GraphOperationBuilder_setAttrTensorList()
280 const int num_dims_length = env->GetArrayLength(num_dims); in Java_org_tensorflow_GraphOperationBuilder_setAttrShapeList()
282 const int shapes_length = env->GetArrayLength(shapes); in Java_org_tensorflow_GraphOperationBuilder_setAttrShapeList()
314 int num_values = env->GetArrayLength(values); in Java_org_tensorflow_GraphOperationBuilder_setAttrStringList()
328 lengths[i] = static_cast<size_t>(env->GetArrayLength(v)); in Java_org_tensorflow_GraphOperationBuilder_setAttrStringList()
Dtensor_jni.cc116 const int nelems = env->GetArrayLength(array); in write1DArray()
154 const int len = env->GetArrayLength(dst); in read1DArray()
191 int len = env->GetArrayLength(ndarray); in writeNDArray()
210 int len = env->GetArrayLength(ndarray); in readNDArray()
268 jsize len = env->GetArrayLength(dst); in readNDStringArray()
291 int num_dims = static_cast<int>(env->GetArrayLength(shape)); in Java_org_tensorflow_Tensor_allocate()
329 size_t src_len = static_cast<int>(env->GetArrayLength(value)); in Java_org_tensorflow_Tensor_allocateScalarBytes()
351 jsize len = env->GetArrayLength(value); in checkForNullEntries()
370 writer->Add(reinterpret_cast<const char*>(jsrc), env->GetArrayLength(value), in fillNonScalarTF_STRINGTensorData()
376 jsize len = env->GetArrayLength(value); in fillNonScalarTF_STRINGTensorData()
[all …]
Dsaved_model_bundle_jni.cc32 size_t sz = env->GetArrayLength(config); in Java_org_tensorflow_SavedModelBundle_load()
46 size_t sz = env->GetArrayLength(run_options); in Java_org_tensorflow_SavedModelBundle_load()
56 size_t tags_len = env->GetArrayLength(tags); in Java_org_tensorflow_SavedModelBundle_load()
Deager_operation_builder_jni.cc145 size_t num_inputs = static_cast<size_t>(env->GetArrayLength(input_handles)); in Java_org_tensorflow_EagerOperationBuilder_addInputList()
171 TFE_OpSetAttrString(op, cname, cvalue, env->GetArrayLength(value)); in Java_org_tensorflow_EagerOperationBuilder_setAttrString()
183 int num_values = env->GetArrayLength(values); in Java_org_tensorflow_EagerOperationBuilder_setAttrStringList()
197 lengths[i] = static_cast<size_t>(env->GetArrayLength(v)); in Java_org_tensorflow_EagerOperationBuilder_setAttrStringList()
234 const int n = env->GetArrayLength(value); \
306 const int num_dims_length = env->GetArrayLength(num_dims); in Java_org_tensorflow_EagerOperationBuilder_setAttrShapeList()
308 const int shapes_length = env->GetArrayLength(shapes); in Java_org_tensorflow_EagerOperationBuilder_setAttrShapeList()
Dutils_jni.cc23 jint len = env->GetArrayLength(src_op); in resolveOutputs()
29 len = env->GetArrayLength(src_index); in resolveOutputs()
Dgraph_jni.cc102 TF_NewBufferFromString(bytes, env->GetArrayLength(graph_def)); in Java_org_tensorflow_Graph_importGraphDef()
150 const jint ny = env->GetArrayLength(y_handles); in Java_org_tensorflow_Graph_addGradients()
151 const jint nx = env->GetArrayLength(x_handles); in Java_org_tensorflow_Graph_addGradients()
161 if (env->GetArrayLength(dx_handles) != ny) { in Java_org_tensorflow_Graph_addGradients()
164 env->GetArrayLength(dx_handles)); in Java_org_tensorflow_Graph_addGradients()
264 int ninputs = env->GetArrayLength(input_handles); in Java_org_tensorflow_Graph_whileLoop()
Deager_session_jni.cc32 opts, cconfig, static_cast<size_t>(env->GetArrayLength(config)), in Java_org_tensorflow_EagerSession_allocate()
Dserver_jni.cc44 server_def_ptr, static_cast<size_t>(env->GetArrayLength(server_def)), in Java_org_tensorflow_Server_allocate()
/external/libjpeg-turbo/
Dturbojpeg-jni.c237 if ((*env)->GetArrayLength(env, src) * srcElementSize < arraySize) in TJCompressor_compress()
240 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in TJCompressor_compress()
343 if ((*env)->GetArrayLength(env, srcobjs) < nc) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
345 if ((*env)->GetArrayLength(env, jSrcOffsets) < nc) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
347 if ((*env)->GetArrayLength(env, jSrcStrides) < nc) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
351 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
379 if ((*env)->GetArrayLength(env, jSrcPlanes[i]) < in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
427 if ((*env)->GetArrayLength(env, dstobjs) < nc) in TJCompressor_encodeYUV()
429 if ((*env)->GetArrayLength(env, jDstOffsets) < nc) in TJCompressor_encodeYUV()
431 if ((*env)->GetArrayLength(env, jDstStrides) < nc) in TJCompressor_encodeYUV()
[all …]
/external/libchrome/base/android/
Djni_array_unittest.cc54 jsize java_array_len = env->GetArrayLength(booleans.obj()); in CheckBoolConversion()
79 jsize java_array_len = env->GetArrayLength(ints.obj()); in CheckIntConversion()
107 jsize java_array_len = env->GetArrayLength(longs.obj()); in CheckLongConversion()
158 jsize java_array_len = env->GetArrayLength(floats.obj()); in CheckFloatConversion()
198 env->GetArrayLength(jbooleans.obj())); in TEST()
220 ASSERT_EQ(static_cast<jsize>(ints.size()), env->GetArrayLength(jints.obj())); in TEST()
243 env->GetArrayLength(jlongs.obj())); in TEST()
271 env->GetArrayLength(jlongs.obj())); in TEST()
298 env->GetArrayLength(jfloats.obj())); in TEST()
Dimportant_file_writer_android.cc26 int data_length = env->GetArrayLength(data); in JNI_ImportantFileWriterAndroid_WriteFileAtomically()
/external/sl4a/ScriptingLayerForAndroid/jni/
Dcom_googlecode_android_scripting_Exec.cpp99 jint len = env->GetArrayLength(bytes); in JNU_GetStringNativeChars()
130 len = env->GetArrayLength(argArray); in Java_com_googlecode_android_1scripting_Exec_createSubprocess()
143 len = env->GetArrayLength(varArray); in Java_com_googlecode_android_1scripting_Exec_createSubprocess()
155 if (env->GetArrayLength(processIdArray) > 0) { in Java_com_googlecode_android_1scripting_Exec_createSubprocess()
/external/pigweed/pw_tokenizer/java/dev/pigweed/tokenizer/
Ddetokenizer.cc58 const jsize size = env->GetArrayLength(array); in DETOKENIZER_METHOD()
79 const jsize size = env->GetArrayLength(array); in DETOKENIZER_METHOD()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc110 const int num_elements = env->GetArrayLength(array); in WriteOneDimensionalArray()
166 const int len = env->GetArrayLength(dst); in ReadOneDimensionalArray()
221 int len = env->GetArrayLength(ndarray); in ReadMultiDimensionalArray()
239 int len = env->GetArrayLength(object_array); in ReadMultiDimensionalStringArray()
276 int len = env->GetArrayLength(ndarray); in WriteMultiDimensionalArray()
302 jsize byte_array_length = env->GetArrayLength(byte_array); in AddStringDynamicBuffer()
314 const int num_elements = env->GetArrayLength(object_array); in PopulateStringDynamicBuffer()
/external/conscrypt/common/src/jni/unbundled/include/nativehelper/
Dscoped_primitive_array.h58 return static_cast<size_t>(mEnv->GetArrayLength(mJavaArray)); \
122 return static_cast<size_t>(mEnv->GetArrayLength(mJavaArray)); \
/external/pdfium/fxjs/
Dcfx_v8_unittest.cpp61 EXPECT_EQ(0u, cfx_v8()->GetArrayLength(empty_array)); in TEST_F()
178 EXPECT_EQ(0u, cfx_v8()->GetArrayLength(array)); in TEST_F()
181 EXPECT_EQ(0u, cfx_v8()->GetArrayLength(array)); in TEST_F()
188 EXPECT_EQ(4u, cfx_v8()->GetArrayLength(array)); in TEST_F()
/external/libtextclassifier/native/utils/java/
Djni-helper.cc196 StatusOr<jsize> JniHelper::GetArrayLength(JNIEnv* env, jarray array) { in GetArrayLength() function in libtextclassifier3::JniHelper
198 jsize result = env->GetArrayLength(array); in GetArrayLength()
258 JniHelper::GetArrayLength(env, array)); in JByteArrayToString()
/external/icing/icing/text_classifier/lib3/utils/java/
Djni-helper.cc194 StatusOr<jsize> JniHelper::GetArrayLength(JNIEnv* env, jarray array) { in GetArrayLength() function in libtextclassifier3::JniHelper
196 jsize result = env->GetArrayLength(array); in GetArrayLength()
256 JniHelper::GetArrayLength(env, array)); in JByteArrayToString()
/external/deqp-deps/amber/samples/
Dandroid_main.cc39 jsize arg_count = env->GetArrayLength(args); in Java_com_google_amber_Amber_androidMain()
/external/webrtc/sdk/android/native_api/jni/
Djava_types.cc158 const size_t len = jni->GetArrayLength(j_byte_array.obj()); in JavaToNativeString()
252 size_t array_length = env->GetArrayLength(jarray.obj()); in JavaToNativeByteArray()
262 size_t array_length = env->GetArrayLength(jarray.obj()); in JavaToNativeIntArray()
/external/oboe/samples/MegaDrone/src/main/cpp/
Dnative-lib.cpp26 jsize length = env->GetArrayLength(intArray); in convertJavaArrayToVector()
/external/tensorflow/tensorflow/tools/android/inference_interface/jni/
Drun_stats_jni.cc60 int size = static_cast<int>(env->GetArrayLength(run_metadata)); in RUN_STATS_METHOD()
/external/skia/modules/androidkit/src/
DCanvas.cpp38 SkASSERT(env->GetArrayLength(jmatrix) == 16); in Canvas_Concat16f()
/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/
Dtokenizer_jni_lib.cc68 const int count = env->GetArrayLength(jtokens); in nativeConvertTokensToIds()

123