Home
last modified time | relevance | path

Searched refs:format_ (Results 1 – 25 of 233) sorted by relevance

12345678910

/third_party/abseil-cpp/absl/strings/internal/str_format/
Dchecker.h108 return ConvParser(format_, args, error_, arg_position_, is_positional_); in SetArgs()
112 return ConvParser(format_, args_, error_ || error, arg_position_, in SetError()
117 return ConvParser(format_, args_, error_, arg_position, is_positional_); in SetArgPosition()
140 return SetFormat(ConsumeAnyOf(format_, "-+ #0")); in ParseFlags()
147 return IsDigit(GetChar(format_, 0)) in ParseWidth()
148 ? SetFormat(ParseDigits(format_).format) in ParseWidth()
149 : GetChar(format_, 0) == '*' in ParseWidth()
152 ParsePositional(ConsumeFront(format_)), '*') in ParseWidth()
153 : SetFormat(ConsumeFront(format_)) in ParseWidth()
162 return GetChar(format_, 0) != '.' in ParsePrecision()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Dchecker.h122 return ConvParser(format_, args, error_, arg_position_, is_positional_); in SetArgs()
126 return ConvParser(format_, args_, error_ || error, arg_position_, in SetError()
131 return ConvParser(format_, args_, error_, arg_position, is_positional_); in SetArgPosition()
154 return SetFormat(ConsumeAnyOf(format_, "-+ #0")); in ParseFlags()
161 return IsDigit(GetChar(format_, 0)) in ParseWidth()
162 ? SetFormat(ParseDigits(format_).format) in ParseWidth()
163 : GetChar(format_, 0) == '*' in ParseWidth()
166 ParsePositional(ConsumeFront(format_)), '*') in ParseWidth()
167 : SetFormat(ConsumeFront(format_)) in ParseWidth()
176 return GetChar(format_, 0) != '.' in ParsePrecision()
[all …]
/third_party/boost/libs/spirit/example/karma/
Dprintf_style_double_format.cpp132 if (!qi::parse(fmt, last, g, format_)) in format_policies()
140 if (format_.type == 'e' || format_.type == 'E') in floatfield()
143 if (format_.type == 'f') in floatfield()
146 BOOST_ASSERT(format_.type == 'g' || format_.type == 'G'); in floatfield()
154 return format_.flag == '+'; in force_sign()
161 return format_.precision; in precision()
178 if (format_.type == 'E' || format_.type == 'G') { in exponent()
194 if (format_.flag == '-') { // left align in call()
202 while(r && int(counting.count()) < format_.width) in call()
208 sink, format_.width); in call()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc1375 format_(printer), in ParseLoopGenerator()
1379 format_.Set("classname", ClassName(descriptor)); in GenerateParserLoop()
1380 format_.Set("p_ns", "::" + ProtobufNamespace(options_)); in GenerateParserLoop()
1381 format_.Set("pi_ns", in GenerateParserLoop()
1383 format_.Set("GOOGLE_PROTOBUF", MacroPrefix(options_)); in GenerateParserLoop()
1387 format_.AddMap(vars); in GenerateParserLoop()
1400 format_( in GenerateParserLoop()
1404 format_.Indent(); in GenerateParserLoop()
1412 format_("_Internal::HasBits has_bits{};\n"); in GenerateParserLoop()
1413 format_.Set("has_bits", "has_bits"); in GenerateParserLoop()
[all …]
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_device_address.cc196 …MS_LOG(INFO) << "SyncDeviceToHost, Device(format:" << format_ << ", type_id:" << TypeIdLabel(type_… in SyncDeviceToHost()
208 if (format_ == kOpFormat_NCHW || format_ == kOpFormat_DEFAULT || format_ == kOpFormat_NCDHW) { in SyncDeviceToHost()
226 auto iter = kOpNeedTransFormat.find(format_); in SyncDeviceToHost()
230 MS_LOG(INFO) << "Can not find format transfer function for :" << format_; in SyncDeviceToHost()
234 …MS_LOG(ERROR) << "Unsupported to trans, dev_format:" << format_ << ", dev_type:" << TypeIdLabel(ty… in SyncDeviceToHost()
245 if (format_ == kOpFormat_FRAC_NZ || format_ == kOpFormat_NCDHW) { in GetDeviceShape()
246 …device_shape = trans::TransShapeToDevice(*host_shape, format_, node_index.first, node_index.second… in GetDeviceShape()
249 *host_shape = trans::PaddingShape(*host_shape, format_); in GetDeviceShape()
254 …device_shape = trans::TransShapeToDevice(*host_shape, format_, node_index.first, node_index.second… in GetDeviceShape()
277 launch_transdata_ = CreateLaunchTransData(host_shape, format_, dst_format); in SyncDeviceToHostAndConvertFormatBasedOnTransData()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Ddetection_post_process_infer.c53 detected_boxes->format_ = boxes->format_; in DetectionPostProcessInferShape()
55 detected_classes->format_ = boxes->format_; in DetectionPostProcessInferShape()
57 detected_scores->format_ = boxes->format_; in DetectionPostProcessInferShape()
59 num_det->format_ = boxes->format_; in DetectionPostProcessInferShape()
Dtranspose_infer.c87 if (input->format_ == Format_NCHW && CheckPermTransFormat(perm, nchw2nhwc, perms_num)) { in TransposeInferShape()
88 output->format_ = Format_NHWC; in TransposeInferShape()
89 } else if ((input->format_ == Format_NHWC || input->format_ == Format_KHWC) && in TransposeInferShape()
91 output->format_ = Format_NCHW; in TransposeInferShape()
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/op/
Delementwise_tensorrt.cc95 tensorrt_in_tensors_[first_in_tensor_index_].format_); in AddInnerOp()
98 tensorrt_in_tensors_[1 - first_in_tensor_index_].format_); in AddInnerOp()
101 tensorrt_in_tensors_[0].format_ != tensorrt_in_tensors_[1].format_) { in AddInnerOp()
103 int transpose_input_tensor = tensorrt_in_tensors_[0].format_ == Format::NCHW ? 0 : 1; in AddInnerOp()
112 tensorrt_in_tensors_[transpose_input_tensor].format_ = Format::NHWC; in AddInnerOp()
113 } else if (tensorrt_in_tensors_[0].format_ != tensorrt_in_tensors_[1].format_) { in AddInnerOp()
119 tensorrt_in_tensors_[first_in_tensor_index_].format_); in AddInnerOp()
122 tensorrt_in_tensors_[1 - first_in_tensor_index_].format_); in AddInnerOp()
157 this->AddInnerOutTensors(ITensorHelper{op_out_tensor, tensorrt_in_tensors_[1].format_}); in AddInnerOp()
158 MS_LOG(DEBUG) << "output " << GetTensorFormat(op_out_tensor, tensorrt_in_tensors_[1].format_); in AddInnerOp()
[all …]
/third_party/mindspore/mindspore/lite/test/ut/nnacl/infer/
Dselect_infer_test.cc43 inputs[1]->format_ = Format_NHWC; in TEST_F()
58 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
87 inputs[1]->format_ = Format_NHWC; in TEST_F()
95 inputs[2]->format_ = Format_NHWC; in TEST_F()
113 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
120 ASSERT_EQ(outputs[1]->format_, Format_NHWC); in TEST_F()
136 inputs1->format_ = Format_NHWC; in TEST_F()
161 ASSERT_EQ(outputs0->format_, Format_NHWC); in TEST_F()
177 inputs1->format_ = Format_NHWC; in TEST_F()
189 inputs2->format_ = Format_NHWC; in TEST_F()
[all …]
Dcustom_extract_features_infer_test.cc35 inputs[0]->format_ = Format_NHWC; in TEST_F()
46 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
50 ASSERT_EQ(outputs[1]->format_, Format_NHWC); in TEST_F()
69 inputs[0]->format_ = Format_NHWC; in TEST_F()
80 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
84 ASSERT_EQ(outputs[1]->format_, Format_NHWC); in TEST_F()
Ddetection_post_process_infer_test.cc34 inputs[0]->format_ = Format_NHWC; in TEST_F()
58 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
63 ASSERT_EQ(outputs[1]->format_, Format_NHWC); in TEST_F()
68 ASSERT_EQ(outputs[2]->format_, Format_NHWC); in TEST_F()
72 ASSERT_EQ(outputs[3]->format_, Format_NHWC); in TEST_F()
Dbn_grad_infer_test.cc45 inputs[1]->format_ = Format_NHWC; in TEST_F()
47 inputs[2]->format_ = Format_NCHW; in TEST_F()
62 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
67 ASSERT_EQ(outputs[1]->format_, Format_NCHW); in TEST_F()
72 ASSERT_EQ(outputs[2]->format_, Format_NCHW); in TEST_F()
Dbatch_to_space_infer_test.cc37 inputs[0]->format_ = Format_NHWC; in TEST_F()
56 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
76 inputs[0]->format_ = Format_NHWC; in TEST_F()
95 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
115 inputs[0]->format_ = Format_NHWC; in TEST_F()
134 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
154 inputs[0]->format_ = Format_NHWC; in TEST_F()
173 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
Dexpand_dims_infer_test.cc36 inputs[0]->format_ = Format_NHWC; in TEST_F()
49 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
68 inputs[0]->format_ = Format_NHWC; in TEST_F()
81 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
100 inputs[0]->format_ = Format_NHWC; in TEST_F()
113 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
Dlsh_projection_infer_test.cc34 inputs[0]->format_ = Format_NHWC; in TEST_F()
47 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
65 inputs[0]->format_ = Format_NHWC; in TEST_F()
78 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
96 inputs[0]->format_ = Format_NHWC; in TEST_F()
113 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
Dgru_infer_test.cc35 inputs[0]->format_ = Format_NHWC; in TEST_F()
60 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
67 ASSERT_EQ(outputs[1]->format_, Format_NHWC); in TEST_F()
87 inputs[0]->format_ = Format_NHWC; in TEST_F()
115 ASSERT_EQ(outputs[0]->format_, Format_NHWC); in TEST_F()
122 ASSERT_EQ(outputs[1]->format_, Format_NHWC); in TEST_F()
Dresize_infer_test.cc35 inputs[0]->format_ = Format_NHWC; in TEST_F()
67 inputs[0]->format_ = Format_NHWC; in TEST_F()
72 inputs[1]->format_ = Format_NHWC; in TEST_F()
106 inputs[0]->format_ = Format_NHWC; in TEST_F()
111 inputs[1]->format_ = Format_NHWC; in TEST_F()
145 inputs[0]->format_ = Format_NHWC; in TEST_F()
150 inputs[1]->format_ = Format_NHWC; in TEST_F()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/
Dbitmap_glyph_info.cc31 format_(format) { in BitmapGlyphInfo()
43 format_(format) { in BitmapGlyphInfo()
47 return (format_ == rhs.format_ && in operator ==()
57 return (format_ == rhs->format() && in operator ==()
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/
Dbitmap_glyph_info.cc31 format_(format) { in BitmapGlyphInfo()
43 format_(format) { in BitmapGlyphInfo()
47 return (format_ == rhs.format_ && in operator ==()
57 return (format_ == rhs->format() && in operator ==()
Dbitmap_glyph.h85 int32_t format() { return format_; } in format()
95 int32_t format_;
102 int32_t format() { return format_; } in format()
110 int32_t format_;
/third_party/mindspore/mindspore/lite/src/
Dtensor.cc31 : data_type_(data_type), shape_(std::move(shape)), format_(format), category_(category) {} in Tensor()
65 result->format_ = src_tensor.format_; in CopyTensor()
99 switch (this->format_) { in Batch()
117 …LOG(ERROR) << "Unsupported format: " << EnumNameFormat(static_cast<schema::Format>(this->format_)); in Batch()
127 switch (this->format_) { in Channel()
154 switch (this->format_) { in Height()
171 …LOG(ERROR) << "Unsupported format: " << EnumNameFormat(static_cast<schema::Format>(this->format_)); in Height()
181 switch (this->format_) { in Width()
204 …auto element_num = (format_ == mindspore::NC4HW4 || format_ == mindspore::NHWC4) ? ElementsC4Num()… in Size()
249 oss << "schema::Format: " << EnumNameFormat(static_cast<schema::Format>(this->format_)); in ToString()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/string/
Dhashtable_lookup_infer.c33 output->format_ = input->format_; in HashtableLoopupInferShape()
37 hits->format_ = input->format_; in HashtableLoopupInferShape()
Dcustom_predict_infer.c35 output0->format_ = input->format_; in CustomPredictInferShape()
39 output1->format_ = input->format_; in CustomPredictInferShape()
Dcustom_extract_features_infer.c32 output0->format_ = input->format_; in CustomExtractFeaturesInferShape()
34 output1->format_ = input->format_; in CustomExtractFeaturesInferShape()
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dspecify_graph_input_format.cc28 if (format_ == mindspore::NHWC) { in Run()
31 if (format_ != mindspore::NCHW) { in Run()
67 if (format_ == mindspore::NCHW) { in HandleGraphInput()
73 if (format_ == mindspore::NCHW) { in HandleGraphInput()
84 if (format_ == mindspore::NCHW) { in HandleGraphInput()

12345678910