Home
last modified time | relevance | path

Searched refs:format_str (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dtensor_format.cc74 bool FormatFromString(const string& format_str, TensorFormat* format) { in FormatFromString() argument
75 if (format_str == "NHWC" || format_str == "NDHWC") { in FormatFromString()
79 if (format_str == "NCHW" || format_str == "NCDHW") { in FormatFromString()
83 if (format_str == "NCHW_VECT_C") { in FormatFromString()
87 if (format_str == "NHWC_VECT_W") { in FormatFromString()
91 if (format_str == "HWNC") { in FormatFromString()
95 if (format_str == "HWCN") { in FormatFromString()
102 bool FilterFormatFromString(const string& format_str, in FilterFormatFromString() argument
104 if (format_str == "HWIO" || format_str == "DHWIO") { in FilterFormatFromString()
108 if (format_str == "OIHW" || format_str == "OIDHW") { in FilterFormatFromString()
[all …]
Dtensor_format_test.cc154 string format_str = ToString(format); in TEST() local
155 EXPECT_EQ(expected_format_str, format_str); in TEST()
164 string format_str = ToString(format); in TEST() local
165 EXPECT_EQ(expected_format_str, format_str); in TEST()
Dtensor_format.h96 bool FormatFromString(const string& format_str, TensorFormat* format);
100 bool FilterFormatFromString(const string& format_str,
/external/python/uritemplates/uritemplate/
Dvariable.py206 format_str = '%s=%s'
208 format_str = '%s,%s'
212 format_str % (
280 format_str = '%s=%s' if explode else '%s,%s'
283 format_str % (
/external/dynamic_depth/internal/dynamic_depth/
Ddepth_map.cc82 DepthFormat StringToFormat(const string& format_str) { in StringToFormat() argument
83 string format_str_lower = format_str; in StringToFormat()
152 string format_str; in ParseFields() local
160 !deserializer.ParseString(prefix, kFormat, &format_str) || in ParseFields()
168 DepthMapParams params(StringToFormat(format_str), near, far, in ParseFields()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugRangeList.cpp49 const char *format_str = (AddressSize == 4 in dump() local
52 OS << format(format_str, Offset, RLE.StartAddress, RLE.EndAddress); in dump()
/external/ltp/testcases/kernel/io/disktest/
Ddump.c38 int format_str(size_t iBytes, const char *ibuff, size_t ibuff_siz, char *obuff, in format_str() function
125 format_str(0, NULL, 0, NULL, 0); in dump_data()
157 format_str(NumBytes, ibuff, ibuff_siz, obuff, in dump_data()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugRangeList.cpp68 const char *format_str = (AddressSize == 4 in dump() local
71 OS << format(format_str, Offset, RLE.StartAddress, RLE.EndAddress); in dump()
/external/libdrm/tests/modetest/
Dmodetest.c789 char format_str[5]; member
809 char format_str[5]; /* need to leave room for terminating \0 */ member
1107 p->w, p->h, p->format_str, plane_id); in set_plane()
1212 pipe->mode_str, pipe->mode->vrefresh, pipe->format_str); in set_mode()
1398 strcpy(pipe->format_str, "XR24"); in parse_connector()
1451 strncpy(pipe->format_str, p + 1, 4); in parse_connector()
1452 pipe->format_str[4] = '\0'; in parse_connector()
1455 pipe->fourcc = util_format_fourcc(pipe->format_str); in parse_connector()
1457 fprintf(stderr, "unknown format %s\n", pipe->format_str); in parse_connector()
1508 strcpy(plane->format_str, p); in parse_plane()
[all …]
/external/tensorflow/tensorflow/contrib/model_pruning/examples/cifar10/
Dcifar10_train.py109 format_str = ('%s: step %d, loss = %.2f (%.1f examples/sec; %.3f '
111 print(format_str % (datetime.datetime.now(), self._step, loss_value,
/external/llvm/test/Transforms/InstCombine/
Dprintf-2.ll10 @format_str = constant [3 x i8] c"%s\00"
47 %fmt = getelementptr [3 x i8], [3 x i8]* @format_str, i32 0, i32 0
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dprintf-2.ll10 @format_str = constant [3 x i8] c"%s\00"
47 %fmt = getelementptr [3 x i8], [3 x i8]* @format_str, i32 0, i32 0
/external/python/apitools/apitools/scripts/
Doauth2l.py140 format_str = textwrap.dedent('\n'.join([
146 return format_str.format(credentials=credentials,
/external/autotest/client/cros/audio/
Dcheck_quality.py248 format_str = 'S%d_LE' % self._sample_width_bits
252 sample_format=format_str)
/external/selinux/libsepol/src/
Dkernel_to_cil.c273 const char *format_str; in class_constraint_rules_to_strs() local
286 format_str = "(mlsconstrain (%s (%s)) %s)"; in class_constraint_rules_to_strs()
289 format_str = "(constrain (%s (%s)) %s)"; in class_constraint_rules_to_strs()
293 rc = strs_create_and_add(strs, format_str, 3, classkey, perms+1, expr); in class_constraint_rules_to_strs()
314 const char *format_str; in class_validatetrans_rules_to_strs() local
326 format_str = "(mlsvalidatetrans %s %s)"; in class_validatetrans_rules_to_strs()
329 format_str = "(validatetrans %s %s)"; in class_validatetrans_rules_to_strs()
333 rc = strs_create_and_add(strs, format_str, 2, classkey, expr); in class_validatetrans_rules_to_strs()
Dkernel_to_conf.c266 const char *format_str, *flavor; in class_constraint_rules_to_strs() local
280 format_str = "%s %s { %s } %s;"; in class_constraint_rules_to_strs()
282 format_str = "%s %s %s %s"; in class_constraint_rules_to_strs()
292 rc = strs_create_and_add(strs, format_str, 4, in class_constraint_rules_to_strs()
/external/python/apitools/apitools/gen/
Dextended_descriptor.py551 format_str = '%%(name)s = %%(module)s.%%(type_name)s(%s)' % args
552 printer(format_str % printed_field_info)
/external/autotest/client/site_tests/firmware_TouchMTB/
Dtest_flow.py192 format_str = '%s %s -d %s -g %s'
193 self.record_cmd = format_str % (self.record_program,
/external/python/cpython2/Lib/test/
Dtest_struct.py565 def check_sizeof(self, format_str, number_of_codes): argument
570 support.check_sizeof(self, struct.Struct(format_str), totalsize)
/external/python/cpython3/Lib/test/
Dtest_struct.py560 def check_sizeof(self, format_str, number_of_codes): argument
565 support.check_sizeof(self, struct.Struct(format_str), totalsize)
/external/python/cpython3/Python/
Dceval.c4951 format_exc_check_arg(PyObject *exc, const char *format_str, PyObject *obj) in format_exc_check_arg() argument
4962 PyErr_Format(exc, format_str, obj_str); in format_exc_check_arg()
/external/python/cpython2/Python/
Dceval.c5137 format_exc_check_arg(PyObject *exc, char *format_str, PyObject *obj) in format_exc_check_arg() argument
5148 PyErr_Format(exc, format_str, obj_str); in format_exc_check_arg()