/external/tensorflow/tensorflow/python/keras/mixed_precision/experimental/ |
D | keras_test.py | 149 x = constant_op.constant([1.], dtype=dtypes.float16) 152 layer = AddLayer(assert_type=dtypes.float16) 155 self.assertEqual(y.dtype, dtypes.float16) 162 x = constant_op.constant([1.], dtype=dtypes.float16) 165 layer = AddLayerWithoutAutoCast(assert_type=dtypes.float16) 168 self.assertEqual(y.dtype, dtypes.float16) 175 x = constant_op.constant([1.], dtype=dtypes.float16) 179 layer = AddLayer(assert_type=dtypes.float16, 188 layer = AddLayerWithoutAutoCast(assert_type=dtypes.float16, 199 x = constant_op.constant([1.], dtype=dtypes.float16) [all …]
|
D | autocast_variable_test.py | 88 dtypes.float16): 89 self.assertEqual(x.dtype, dtypes.float16) 90 self.assertEqual(x.value().dtype, dtypes.float16) 91 self.assertEqual(x.read_value().dtype, dtypes.float16) 92 self.assertEqual(array_ops.identity(x).dtype, dtypes.float16) 110 dtypes.float16): 111 self.assertEqual(x.dtype, dtypes.float16) 112 self.assertEqual(x.read_value().dtype, dtypes.float16) 119 self.assertEqual(x.dtype, dtypes.float16) 120 self.assertEqual(x.read_value().dtype, dtypes.float16) [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | spv.16bitstorage_Error.frag.out | 2 ERROR: 0:54: 'structure: float16 types can only be in uniform block or buffer storage' : required e… 6 ERROR: 0:58: 'return: can't use with structs containing float16' : required extension not requested… 10 ERROR: 0:61: 'float16_t: float16 types can only be in uniform block or buffer storage' : required e… 14 ERROR: 0:74: '[: does not operate on types containing float16' : required extension not requested: … 18 ERROR: 0:75: '.: can't swizzle types containing float16' : required extension not requested: Possib… 22 ERROR: 0:76: 'built-in function: float16 types can only be in uniform block or buffer storage' : re… 26 ERROR: 0:76: 'built-in function: float16 types can only be in uniform block or buffer storage' : re… 30 ERROR: 0:76: 'built-in function: float16 types can only be in uniform block or buffer storage' : re… 34 ERROR: 0:77: 'built-in function: float16 types can only be in uniform block or buffer storage' : re… 38 ERROR: 0:77: 'built-in function: float16 types can only be in uniform block or buffer storage' : re… [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | random_ops_test.py | 82 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 98 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 104 if dt == dtypes.float16: 111 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 129 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 136 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 149 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 181 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 201 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 209 if dt == dtypes.float16: [all …]
|
D | random_gamma_test.py | 109 dtypes.float16: stats.gamma(alpha).cdf(np.finfo(np.float16).tiny), 115 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 136 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 142 count_limit = 20 if dt == dtypes.float16 else 10 153 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 158 if dt == dtypes.float16: 165 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 177 for dtype in dtypes.float16, dtypes.float32, dtypes.float64: 220 for dt in [dtypes.float16, dtypes.float32, dtypes.float64]:
|
D | random_poisson_test.py | 34 _SUPPORTED_DTYPES = (dtypes.float16, dtypes.float32, dtypes.float64, 87 if dt == dtypes.float16: 94 for dt in dtypes.float16, dtypes.float32, dtypes.float64: 106 for dtype in dtypes.float16, dtypes.float32, dtypes.float64:
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmUtils.cpp | 564 std::vector<deFloat16> float16; in getFloat16s() local 566 float16.reserve(count); in getFloat16s() 569 float16.push_back(deUint16(0x0000)); in getFloat16s() 570 float16.push_back(deUint16(0x8000)); in getFloat16s() 572 float16.push_back(deUint16(0x7c00)); in getFloat16s() 573 float16.push_back(deUint16(0xfc00)); in getFloat16s() 575 float16.push_back(deUint16(0x7c0f)); in getFloat16s() 576 float16.push_back(deUint16(0xfc0f)); in getFloat16s() 578 float16.push_back(deUint16(0x7cf0)); in getFloat16s() 579 float16.push_back(deUint16(0xfcf0)); in getFloat16s() [all …]
|
/external/deqp-deps/glslang/Test/ |
D | spv.float16.frag | 133 f16v = f16vec3(bv); // bool -> float16 134 bv = bvec3(f16v); // float16 -> bool 136 f16v = f16vec3(fv); // float -> float16 137 fv = vec3(f16v); // float16 -> float 139 f16v = f16vec3(dv); // double -> float16 140 dv = dvec3(dv); // float16 -> double 142 f16v = f16vec3(iv); // int -> float16 143 iv = ivec3(f16v); // float16 -> int 145 f16v = f16vec3(uv); // uint -> float16 146 uv = uvec3(f16v); // float16 -> uint [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | nn_fused_batchnorm_test.py | 92 atol = 2e-3 if x_dtype == np.float16 else 1e-3 134 y_atol = 2e-3 if x_dtype == np.float16 else 1e-3 166 x_init_val = np.random.random_sample(x_shape).astype(np.float16) 212 if x_dtype != np.float16: 235 x_err_tolerance = 2e-3 if x_dtype == np.float16 else 1e-3 288 if x_dtype != np.float16: 344 for dtype in [np.float16, np.float32]: 356 for dtype in [np.float16, np.float32]: 365 for dtype in [np.float16, np.float32]: 371 for dtype in [np.float16, np.float32]: [all …]
|
D | math_ops_test.py | 98 for dtype in [np.float16, np.float32, np.double]: 106 for dtype in [np.float16, np.float32, np.double]: 116 for dtype in [np.float16, np.float32, np.double]: 127 for dtype in [np.float16, np.float32, np.double]: 138 for dtype in [np.float16, np.float32, np.double]: 156 for dtype in [np.float16, np.float32, np.double]: 227 for dtype in [np.float16, np.float32, np.float64, np.int32, np.int64]: 581 for dtype in [dtypes.float16, dtypes.float32, dtypes.float64]: 591 for dtype in [dtypes.float16, dtypes.float32, dtypes.float64]: 601 for dtype in [dtypes.float16, dtypes.float32, dtypes.float64]: [all …]
|
D | transpose_benchmark.py | 113 datatypes = [np.complex128, np.float64, np.float32, np.float16, np.int8] 135 if datatype is not np.float16: 151 small_dim_small_shape_datatypes = [np.complex128, np.float16]
|
/external/libtextclassifier/lang_id/common/lite_base/ |
D | float16.h | 46 typedef uint16 float16; typedef 48 static inline float16 Float32To16(float f) { in Float32To16() 54 static inline float Float16To32(float16 f) { in Float16To32()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | bias_op_test.py | 86 if np_inputs.dtype in [np.float16, np.float32, np.float64]: 123 for t in [np.float16, np.float32, np.float64]: 129 for t in [np.float16, np.float32, np.float64]: 136 for t in [np.float16, np.float32, np.float64]: 161 if dtype == np.float16: 199 for dtype in (dtypes.float16, dtypes.float32, dtypes.float64): 210 for dtype in (dtypes.float16, dtypes.float32, dtypes.float64): 220 for dtype in (dtypes.float16, dtypes.float32, dtypes.float64): 231 for dtype in (dtypes.float16, dtypes.float32, dtypes.float64):
|
D | cwise_ops_test.py | 76 if dtype == np.float16: 97 dtypes = [np.float16, np.float32, np.float64, np.int32, np.int64] 130 for t in [np.float16, np.float32, np.float64, np.int32, np.int64]: 172 np.float16, 206 dtypes = [np.float16, np.float32, np.float64, np.int32, np.int64] 345 if x.dtype == np.float16: 369 if x.dtype == np.float16: 381 np.float16, np.float32, np.float64, np.int32, np.int64, np.complex64, 387 if t in [np.float16, np.float32, np.float64]: 395 np.float16, np.float32, np.float64, np.int32, np.int64, np.complex64, [all …]
|
D | aggregate_ops_test.py | 44 dtypes.float16, dtypes.float32, dtypes.float64, dtypes.complex64, 48 dtypes.float16, dtypes.float32, dtypes.float64, dtypes.complex64, 68 tol = 5e-3 if dtype == dtypes.float16 else 5e-7 82 tol = 5e-3 if dtype == dtypes.float16 else 5e-7
|
D | relu_op_test.py | 67 for t in [np.int32, np.int64, np.float16, np.float32, np.float64]: 76 for t in [np.float16, np.float32, np.float64]: 139 x16 = math_ops.cast(x32, dtype=dtypes.float16) 242 for t in [np.int32, np.int64, np.float16, np.float32, np.float64]: 251 for t in [np.float16, np.float, np.double]: 302 for t in [np.int32, np.int64, np.float16, np.float32, np.float64]: 312 for t in [np.float16, np.float32, np.float64]: 414 for t in [np.float16, np.float32, np.float64]: 423 for t in [np.float16, np.float32, np.float64]: 522 for t in [np.float16, np.float32, np.float64]: [all …]
|
/external/clang/test/CodeGen/ |
D | target-builtin-error-3.c | 16 typedef __attribute__ ((ext_vector_type(16),__aligned__( 64))) float float16; typedef 20 static inline half16 __attribute__((__overloadable__)) convert_half( float16 a ) { in convert_half() 25 void avx_test( uint16_t *destData, float16 argbF) in avx_test()
|
/external/libxcam/cl_kernel/ |
D | kernel_wavelet_coeff.cl | 65 …float16 line0 = *((__local float16 *)(local_src_data + local_id_y * SLM_CELL_X_SIZE + local_id_x)); 66 …float16 line1 = *((__local float16 *)(local_src_data + (local_id_y + 1) * SLM_CELL_X_SIZE + local_… 67 …float16 line2 = *((__local float16 *)(local_src_data + (local_id_y + 2) * SLM_CELL_X_SIZE + local_… 68 …float16 line3 = *((__local float16 *)(local_src_data + (local_id_y + 3) * SLM_CELL_X_SIZE + local_… 69 …float16 line4 = *((__local float16 *)(local_src_data + (local_id_y + 4) * SLM_CELL_X_SIZE + local_…
|
D | kernel_tonemapping.cl | 78 …float16 integrate_data = *((__local float16 *)(local_src_data + local_id_y * SHARED_PIXEL_X_SIZE +… 84 …integrate_data = *((__local float16 *)(local_src_data + (local_id_y + 1) * SHARED_PIXEL_X_SIZE + l… 90 …integrate_data = *((__local float16 *)(local_src_data + (local_id_y + 2) * SHARED_PIXEL_X_SIZE + l…
|
/external/tensorflow/tensorflow/python/training/ |
D | training_ops_test.py | 39 if dtype == np.float16: 40 return dtypes.float16 66 [np.float16, np.float32, np.float64], [False, True]): 118 if x.dtype == np.float16: 135 [np.float16, np.float32, np.float64], [False, True]): 144 for dtype in [np.float16, np.float32, np.float64]: 217 [np.float16, np.float32, np.float64], [np.int32, np.int64]): 231 [np.float16, np.float32, np.float64], [np.int32, np.int64]): 245 [np.float16, np.float32, np.float64], [np.int32, np.int64]): 261 [np.float16, np.float32, np.float64], [False, True]):
|
/external/clang/lib/Headers/ |
D | opencl-c.h | 122 typedef float float16 __attribute__((ext_vector_type(16))); typedef 4183 char16 __ovld __cnfn convert_char16_rte(float16); 4184 char16 __ovld __cnfn convert_char16_sat_rte(float16); 4185 char16 __ovld __cnfn convert_char16_rtz(float16); 4186 char16 __ovld __cnfn convert_char16_sat_rtz(float16); 4187 char16 __ovld __cnfn convert_char16_rtp(float16); 4188 char16 __ovld __cnfn convert_char16_sat_rtp(float16); 4189 char16 __ovld __cnfn convert_char16_rtn(float16); 4190 char16 __ovld __cnfn convert_char16_sat_rtn(float16); 4191 char16 __ovld __cnfn convert_char16(float16); [all …]
|
/external/tensorflow/tensorflow/contrib/mixed_precision/python/ |
D | loss_scale_optimizer_test.py | 44 c1 = constant_op.constant(1e4, dtype=dtypes.float16) 45 c2 = constant_op.constant(1e-4, dtype=dtypes.float16) 46 c3 = constant_op.constant(1e-4, dtype=dtypes.float16) 48 loss = lambda: math_ops.cast(x, dtypes.float16) * c1 * c2 * c3 50 loss = math_ops.cast(x, dtypes.float16) * c1 * c2 * c3
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | reduce_ops_test.py | 154 if np.float16 in self.all_types: 155 self._testReduction(math_ops.reduce_mean, np.mean, np.float16, self.ONES, 212 if np.float16 not in self.all_types: 215 f16_max = np.finfo(np.float16).max 217 f16_max, np.float16,
|
/external/tensorflow/tensorflow/python/framework/ |
D | dtypes.py | 326 float16 = DType(types_pb2.DT_HALF) variable 328 half = float16 408 types_pb2.DT_HALF: float16, 510 _STRING_TO_TF["half"] = float16 536 np.float16: float16, 578 np.float16, 624 np.float16,
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | util_test.py | 244 p = array_ops.ones([int(2**11+1)], dtype=np.float16) 250 p = array_ops.placeholder(dtype=dtypes.float16) 259 l = array_ops.ones([int(2**11+1)], dtype=np.float16) 265 l = array_ops.placeholder(dtype=dtypes.float16) 277 param = array_ops.ones([1], dtype=np.float16) 283 param = array_ops.placeholder(dtype=dtypes.float16) 292 param = array_ops.ones([int(2**11+1)], dtype=dtypes.float16) 298 param = array_ops.placeholder(dtype=dtypes.float16) 318 x = array_ops.placeholder(dtype=dtypes.float16) 321 x_checked.eval(feed_dict={x: np.array([1, -1], dtype=np.float16)}) [all …]
|