Home
last modified time | relevance | path

Searched refs:use_bfloat16 (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
Dresnet_preprocessing.py135 def preprocess_for_train(image_bytes, use_bfloat16, image_size=IMAGE_SIZE): argument
150 image, dtype=tf.bfloat16 if use_bfloat16 else tf.float32)
154 def preprocess_for_eval(image_bytes, use_bfloat16, image_size=IMAGE_SIZE): argument
168 image, dtype=tf.bfloat16 if use_bfloat16 else tf.float32)
174 use_bfloat16=False, argument
188 return preprocess_for_train(image_bytes, use_bfloat16, image_size)
190 return preprocess_for_eval(image_bytes, use_bfloat16, image_size)
Dimagenet_input.py74 use_bfloat16, argument
83 self.use_bfloat16 = use_bfloat16
129 use_bfloat16=self.use_bfloat16)
230 if self.use_bfloat16 else tf.float32)
Dmain_estimator_tpu.py216 use_bfloat16=False) for is_training in [True, False]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dconv_depthwise_backprop_filter_test.cc31 string GetFloatDataType(bool use_bfloat16) { in GetFloatDataType() argument
32 return use_bfloat16 ? "bf16" : "f32"; in GetFloatDataType()
127 const BatchGroupedConvolution2DSpec& spec, bool use_bfloat16) { in BuildHloTextBatchGroupedConvolution2D() argument
128 const string data_type = GetFloatDataType(use_bfloat16); in BuildHloTextBatchGroupedConvolution2D()
157 bool use_bfloat16 = ::testing::get<1>(GetParam()); in XLA_TEST_P() local
159 BuildHloTextBatchGroupedConvolution2D(spec, use_bfloat16); in XLA_TEST_P()
Dconv_depthwise_test.cc31 string GetFloatDataType(bool use_bfloat16) { in GetFloatDataType() argument
32 return use_bfloat16 ? "bf16" : "f32"; in GetFloatDataType()
134 const DepthwiseConvolution2DSpec& spec, bool use_bfloat16) { in BuildHloTextDepthwiseConvolution2D() argument
135 const string data_type = GetFloatDataType(use_bfloat16); in BuildHloTextDepthwiseConvolution2D()
214 bool use_bfloat16 = ::testing::get<1>(GetParam()); in XLA_TEST_P() local
216 BuildHloTextDepthwiseConvolution2D(spec, use_bfloat16); in XLA_TEST_P()
Dgrouped_convolution_test.cc31 string GetFloatDataType(bool use_bfloat16) { in GetFloatDataType() argument
32 return use_bfloat16 ? "bf16" : "f32"; in GetFloatDataType()
143 bool use_bfloat16) { in BuildHloTextGroupedConvolution2D() argument
144 const string data_type = GetFloatDataType(use_bfloat16); in BuildHloTextGroupedConvolution2D()
226 bool use_bfloat16 = ::testing::get<1>(GetParam()); in XLA_TEST_P() local
227 const string hlo_text = BuildHloTextGroupedConvolution2D(spec, use_bfloat16); in XLA_TEST_P()
Dreverse_test.cc44 bool use_bfloat16; member
49 absl::StrJoin(reversal, "x"), use_bfloat16 ? "bf16" : "f32"); in ToTestCaseName()
77 FloatReverseTest() { set_use_bfloat16(GetParam().use_bfloat16); } in FloatReverseTest()
Dclient_library_test_base.h55 for (bool use_bfloat16 : use_bfloat16_params) { in ExpandUseBfloat16() local
58 expanded.back().use_bfloat16 = use_bfloat16; in ExpandUseBfloat16()
376 bool use_bfloat16() const { return use_bfloat16_; } in use_bfloat16() function
Dreshape_test.cc620 ShapeUtil::MakeShapeWithLayout(use_bfloat16() ? BF16 : F32, {2, 8}, in XLA_TEST_P()
628 if (use_bfloat16()) { in XLA_TEST_P()
770 ShapeUtil::MakeShapeWithLayout(use_bfloat16() ? BF16 : F32, {7, 2, 3, 5}, in XLA_TEST_P()
781 if (use_bfloat16()) { in XLA_TEST_P()
Dpad_test.cc78 if (use_bfloat16()) { in DefaultErrorSpec()
Dreduce_window_test.cc59 if (use_bfloat16()) { in DefaultErrorSpec()
1024 if (use_bfloat16()) { in TEST_P()
/external/tensorflow/tensorflow/contrib/distribute/python/examples/
Dkeras_mnist.py30 def get_input_datasets(use_bfloat16=False): argument
42 cast_dtype = tf.bfloat16 if use_bfloat16 else tf.float32
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator_test.cc133 explicit HloEvaluatorTest(bool use_bfloat16) : use_bfloat16_(use_bfloat16) {} in HloEvaluatorTest() argument