Home
last modified time | relevance | path

Searched refs:string_length (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Dstring_length_op_test.py32 lengths = string_ops.string_length(strings)
44 utf8_byte_lengths = string_ops.string_length(utf8_strings, unit="BYTE")
45 utf8_char_lengths = string_ops.string_length(
54 string_ops.string_length(utf8_strings, unit="XYZ")
61 lengths = string_ops.string_length(strings, "some_name")
/external/tensorflow/tensorflow/core/kernels/
Dconcat_op_test.cc39 void FillTensorWithRandomValues(Tensor* t, int string_length, int64* bytes) { in FillTensorWithRandomValues() argument
45 void FillTensorWithRandomValues<tstring>(Tensor* t, int string_length, in FillTensorWithRandomValues() argument
50 ts(i) = tstring(string_length, 'x'); in FillTensorWithRandomValues()
61 int string_length = 0) { in ConcatHelper() argument
72 FillTensorWithRandomValues<T>(&in0, string_length, &in0_bytes); in ConcatHelper()
73 FillTensorWithRandomValues<T>(&in1, string_length, &in1_bytes); in ConcatHelper()
101 static void BM_ConcatDim0String(int iters, int dim2, int string_length) { in BM_ConcatDim0String() argument
102 ConcatHelper<tstring>(iters, 0, dim2, string_length); in BM_ConcatDim0String()
/external/tensorflow/tensorflow/python/ops/
Dstring_ops.py397 def string_length(input, name=None, unit="BYTE"): function
421 return gen_string_ops.string_length(input, unit=unit, name=name)
427 return gen_string_ops.string_length(input, unit=unit, name=name)
430 string_length_v2.__doc__ = gen_string_ops.string_length.__doc__
/external/v8/src/regexp/
Dregexp-utils.cc200 const uint64_t string_length = static_cast<uint64_t>(string->length()); in AdvanceStringIndex() local
201 if (unicode && index < string_length) { in AdvanceStringIndex()
203 if (first >= 0xD800 && first <= 0xDBFF && index + 1 < string_length) { in AdvanceStringIndex()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.cc127 const uint64 string_length = string_lengths[i]; in ReadStringTensor() local
130 buffer->resize(string_length); in ReadStringTensor()
133 buffered_file->ReadNBytes(string_length, &(*buffer)[0], &bytes_read)); in ReadStringTensor()
154 uint64 string_length = 0; in ReadVariantTensor() local
155 TF_RETURN_IF_ERROR(buffered_file->ReadVarint64(&string_length)); in ReadVariantTensor()
157 *actual_crc32c, reinterpret_cast<const char*>(&string_length), in ReadVariantTensor()
161 buffer.resize(string_length); in ReadVariantTensor()
164 buffered_file->ReadNBytes(string_length, &buffer[0], &bytes_read)); in ReadVariantTensor()
169 "buffer of size ", string_length, ". ", in ReadVariantTensor()
/external/python/pybind11/tests/
Dtest_builtin_casters.py104 assert m.string_length(byte("world")) == 5
105 assert m.string_length(byte("a\x00b")) == 3
109 assert m.string_length(u'��'.encode("utf8")) == 4
/external/v8/src/runtime/
Druntime-strings.cc519 const int string_length = string->length(); in RUNTIME_FUNCTION() local
530 while (index + 1 < string_length) { in RUNTIME_FUNCTION()
554 if (prev_index < string_length - 1) { in RUNTIME_FUNCTION()
555 builder.AddSubjectSlice(prev_index + 1, string_length); in RUNTIME_FUNCTION()
/external/v8/src/builtins/
Dbuiltins-regexp-gen.cc349 TNode<IntPtrT> last_index, TNode<IntPtrT> string_length, in GetStringPointers() argument
365 ElementOffsetFromIndex(IntPtrAdd(offset, string_length), kind); in GetStringPointers()
1335 TNode<UintPtrT> string_length = Unsigned(LoadStringLengthAsWord(string)); in AdvanceStringIndex() local
1338 GotoIfNot(UintPtrLessThan(untagged_plus_one, string_length), &out); in AdvanceStringIndex()
1432 const TNode<Smi> string_length = LoadStringLengthAsSmi(string); in RegExpPrototypeSplitBody() local
1438 Branch(SmiEqual(string_length, SmiZero()), &if_stringisempty, &next); in RegExpPrototypeSplitBody()
1491 Branch(SmiEqual(next_search_from, string_length), &push_suffix_and_out, in RegExpPrototypeSplitBody()
1519 Branch(SmiEqual(match_from, string_length), &push_suffix_and_out, &next); in RegExpPrototypeSplitBody()
1617 const TNode<Smi> to = string_length; in RegExpPrototypeSplitBody()
Daccessors.h49 V(_, string_length, StringLength, kHasNoSideEffect, kHasSideEffectToReceiver)
Dbuiltins-regexp-gen.h47 TNode<IntPtrT> string_length,
Dbuiltins-string-gen.cc2013 const TNode<IntPtrT> string_length = LoadStringLengthAsWord(string); in SubString() local
2018 GotoIf(UintPtrGreaterThanOrEqual(substr_length, string_length), in SubString()
2119 CSA_ASSERT(this, IntPtrEqual(substr_length, string_length)); in SubString()
/external/libchrome/base/strings/
Dstring_util_unittest.cc406 const size_t string_length = arraysize(char_ascii) - 1; in TEST() local
408 for (size_t len = 0, max_len = string_length - offset; len < max_len; in TEST()
421 const size_t string_length = arraysize(char16_ascii) - 1; in TEST() local
423 for (size_t len = 0, max_len = string_length - offset; len < max_len; in TEST()
442 const size_t string_length = wchar_ascii.length(); in TEST() local
443 for (size_t len = 0; len < string_length; ++len) { in TEST()
/external/libtextclassifier/native/utils/java/
Djni-cache.h44 jmethodID string_length = nullptr; member
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DPacket.java506 int string_length = this.getNextValueAsInt(); in getNextValueAsString() local
509 res = new String(data, reading_data_index, string_length, "UTF-8"); in getNextValueAsString()
513 reading_data_index = reading_data_index + string_length; in getNextValueAsString()
/external/libtextclassifier/native/utils/utf8/
Dunilib-javaicu.cc274 text_.get(), jni_cache_->string_length); in ApproximatelyMatches()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c1384 uint32_t string_length; in virgl_encode_host_debug_flagstring() local
1395 string_length = (uint32_t)MIN2(sslen * 4, slen); in virgl_encode_host_debug_flagstring()
1398 virgl_encoder_write_block(ctx->cbuf, (const uint8_t *)flagstring, string_length); in virgl_encode_host_debug_flagstring()
/external/ImageMagick/MagickCore/
Ddelegate.c899 #define ExtendInterpretText(string_length) \ in InterpretDelegateProperties() argument
902 size_t length=(string_length); \ in InterpretDelegateProperties()
Dproperty.c3416 #define ExtendInterpretText(string_length) \ in InterpretImageProperties() argument
3419 size_t length=(string_length); \ in InterpretImageProperties()
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_dispatch.py348 string_ops.string_length,
/external/elfutils/libdw/
Dknown-dwarf.h137 DWARF_ONE_KNOWN_DW_AT (string_length, DW_AT_string_length) \
/external/python/cpython2/Objects/
Dstringobject.c1016 string_length(PyStringObject *a) in string_length() function
1413 (lenfunc)string_length, /*sq_length*/
1424 (lenfunc)string_length,
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c918 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_string()
925 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_stringz()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c835 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_string()
842 return LLVMConstStringInContext(Context, String_val(Str), string_length(Str), in llvm_const_stringz()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DDwarf.def208 HANDLE_DW_AT(0x19, string_length, 2, DWARF)
/external/v8/src/objects/
Dobjects.cc4623 const int string_length = string.length(); in WriteFixedArrayToFlat() local
4625 DCHECK(string_length == 0 || sink < sink_end); in WriteFixedArrayToFlat()
4626 String::WriteToFlat(string, sink, 0, string_length); in WriteFixedArrayToFlat()
4627 sink += string_length; in WriteFixedArrayToFlat()

12