Home
last modified time | relevance | path

Searched refs:s_size (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/core/lib/gtl/
Dedit_distance.h49 const int64 s_size = s.size(); in LevenshteinDistance() local
52 if (t_size > s_size) return LevenshteinDistance(t, s, cmp); in LevenshteinDistance()
57 if (t_size == 0) return s_size; in LevenshteinDistance()
69 for (size_t i = 1; i <= s_size; ++i) { in LevenshteinDistance()
/external/python/cpython3/Modules/
D_struct.c57 Py_ssize_t s_size; member
1362 self->s_size = size; in prepare_s()
1436 s->s_size = -1; in s_new()
1558 if (buffer->len != self->s_size) { in Struct_unpack_impl()
1561 self->s_size); in Struct_unpack_impl()
1591 if (offset + self->s_size > 0) { in Struct_unpack_from_impl()
1594 self->s_size, in Struct_unpack_from_impl()
1609 if ((buffer->len - offset) < self->s_size) { in Struct_unpack_from_impl()
1614 (size_t)self->s_size + (size_t)offset, in Struct_unpack_from_impl()
1615 self->s_size, in Struct_unpack_from_impl()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dgather_nd_op_gpu.cu.cc76 int64 s_size = Tout.dimension(1); in operator ()() local
80 batch_strides[size_t(IXDIM - 1)] = s_size; in operator ()()
93 indices_size, s_size, out_size)); in operator ()()
/external/fmtlib/src/
Dos.cc85 int s_size = static_cast<int>(s.size()); in convert() local
86 if (s_size == 0) { in convert()
93 int length = WideCharToMultiByte(CP_UTF8, 0, s.data(), s_size, nullptr, 0, in convert()
97 length = WideCharToMultiByte(CP_UTF8, 0, s.data(), s_size, &buffer_[0], in convert()
/external/python/cpython2/Modules/
D_struct.c47 Py_ssize_t s_size; member
1289 self->s_size = size; in prepare_s()
1362 s->s_size = -1; in s_new()
1469 PyString_GET_SIZE(inputstr) == soself->s_size) { in s_unpack()
1479 if (soself->s_size != len) { in s_unpack()
1492 soself->s_size); in s_unpack()
1532 if (offset < 0 || (buffer_len - offset) < soself->s_size) { in s_unpack_from()
1535 soself->s_size); in s_unpack_from()
1563 memset(buf, '\0', soself->s_size); in s_pack_internal()
1637 result = PyString_FromStringAndSize((char *)NULL, soself->s_size); in s_pack()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding_util.cc334 int64 s_size = 1; in ReshapeSharding() local
338 s_size = source_dims_stack.back(); in ReshapeSharding()
350 if (s_size == t_size) { in ReshapeSharding()
356 source_dims_stack.push_back(s_size); in ReshapeSharding()
358 } else if (s_size == 1) { in ReshapeSharding()
364 } else if (s_size > t_size) { in ReshapeSharding()
366 if (s_size % t_size != 0 || s_size % s_partitions != 0) { in ReshapeSharding()
372 source_dims_stack.push_back(s_size / t_size); in ReshapeSharding()
377 source_dims_stack.push_back(s_size / t_size); in ReshapeSharding()
385 if (s_size % s_partitions != 0) { in ReshapeSharding()
[all …]
/external/tensorflow/tensorflow/python/framework/
Dop_def_util.cc259 if (list.s_size()) { in AttrValueListToPyObject()
260 Safe_PyObjectPtr result(PyList_New(list.s_size())); in AttrValueListToPyObject()
261 for (int i = 0; i < list.s_size(); ++i) { in AttrValueListToPyObject()
Dpython_op_gen_internal.cc389 if (value.list().s_size() > 0) { in AttrListToPython()
390 for (int i = 0; i < value.list().s_size(); ++i) { in AttrListToPython()
/external/tensorflow/tensorflow/core/framework/
Dkernel_def_util.cc46 if (constraint.allowed_values().list().s_size() > 0) { in KernelAttrsMatch()
Dattr_value_util.cc247 if (attr_value.list().s_size() > 0) { in SummarizeAttrValue()
248 for (int i = 0; i < attr_value.list().s_size(); ++i) { in SummarizeAttrValue()
Dop_def_util.cc105 length = attr_value.list().s_size(); in ValidateAttrValue()
Dnode_def_util.cc944 auto constraints_size = constraints_list->s_size(); in MaybeAddPrefixToColocationConstraints()
/external/kernel-headers/original/uapi/linux/
Dcoff.h161 char s_size[4]; /* section size */ member
/external/llvm-project/lldb/tools/debugserver/source/
DJSON.cpp27 const size_t s_size = s.size(); in json_string_quote_metachars() local
29 for (size_t i = 0; i < s_size; i++) { in json_string_quote_metachars()
DRNBRemote.cpp1343 const size_t s_size = s.size(); in binary_encode_string() local
1346 for (size_t i = 0; i < s_size; i++) { in binary_encode_string()
1367 const size_t s_size = s.size(); in json_string_quote_metachars() local
1369 for (size_t i = 0; i < s_size; i++) { in json_string_quote_metachars()
/external/perfetto/src/profiling/memory/
Dbookkeeping_unittest.cc287 uint64_t s_size = 2; in TEST() local
310 ASSERT_EQ(hd.GetSizeForTesting(s, s_b), s_size); in TEST()
/external/tensorflow/tensorflow/c/eager/
Dc_api.cc1060 if (const int s_size = default_value.list().s_size()) { in SetOpAttrValueScalar() local
1063 for (int i = 0; i < s_size; ++i) { in SetOpAttrValueScalar()
1069 lengths_vector.data(), s_size); in SetOpAttrValueScalar()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_concat_op.cc505 size_t s_size = s_shape.dim_size(d); in Compute() local
507 context, expected_size == s_size, in Compute()
511 "][", d, "] = ", s_size)); in Compute()
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen.cc232 if (attr_value.list().s_size() > 0) { in PrintAttrValue()
233 for (int i = 0; i < attr_value.list().s_size(); ++i) { in PrintAttrValue()
282 return list.s_size() == 0 && list.i_size() == 0 && list.f_size() == 0 && in IsEmptyList()
/external/mesa3d/src/compiler/glsl/
Dir_reader.cpp138 s_int *s_size; in read_type() local
140 s_pattern pat[] = { "array", s_base_type, s_size }; in read_type()
148 return glsl_type::get_array_instance(base_type, s_size->value()); in read_type()
/external/tensorflow/tensorflow/core/common_runtime/
Dgraph_constructor_test.cc2003 ASSERT_EQ(class_attr->list().s_size(), 1); in TEST_F()
2018 ASSERT_EQ(class_attr->list().s_size(), 1); in TEST_F()
2034 ASSERT_EQ(class_attr->list().s_size(), 1); in TEST_F()
2038 ASSERT_EQ(class_attr->list().s_size(), 1); in TEST_F()
Dgraph_constructor.cc967 for (int i = 0; i < list->s_size(); ++i) { in AddPrefixToNodeDef()
/external/tensorflow/tensorflow/c/
Dkernels.cc317 for (int i = 0; i < attr->list().s_size(); in TF_OpKernelConstruction_GetAttrSize()
Dc_api.cc1270 for (int i = 0; i < attr->list().s_size(); in TF_OperationGetAttrMetadata()
1367 const auto len = std::min(max_values, attr->list().s_size()); in TF_OperationGetAttrStringList()
/external/tensorflow/tensorflow/lite/toco/tflite/
Doperator_test.cc700 ASSERT_EQ(5, list.s_size()); in TEST_F()

12