Home
last modified time | relevance | path

Searched refs:float16 (Results 1 – 25 of 184) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/keras/mixed_precision/experimental/
Dkeras_test.py149 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 …]
Dautocast_variable_test.py88 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/
Dspv.16bitstorage_Error.frag.out2 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/
Drandom_ops_test.py82 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 …]
Drandom_gamma_test.py109 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]:
Drandom_poisson_test.py34 _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/
DvktSpvAsmUtils.cpp564 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/
Dspv.float16.frag133 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/
Dnn_fused_batchnorm_test.py92 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 …]
Dmath_ops_test.py98 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 …]
Dtranspose_benchmark.py113 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/
Dfloat16.h46 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/
Dbias_op_test.py86 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):
Dcwise_ops_test.py76 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 …]
Daggregate_ops_test.py44 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
Drelu_op_test.py67 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/
Dtarget-builtin-error-3.c16 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/
Dkernel_wavelet_coeff.cl65float16 line0 = *((__local float16 *)(local_src_data + local_id_y * SLM_CELL_X_SIZE + local_id_x));
66float16 line1 = *((__local float16 *)(local_src_data + (local_id_y + 1) * SLM_CELL_X_SIZE + local_…
67float16 line2 = *((__local float16 *)(local_src_data + (local_id_y + 2) * SLM_CELL_X_SIZE + local_…
68float16 line3 = *((__local float16 *)(local_src_data + (local_id_y + 3) * SLM_CELL_X_SIZE + local_…
69float16 line4 = *((__local float16 *)(local_src_data + (local_id_y + 4) * SLM_CELL_X_SIZE + local_…
Dkernel_tonemapping.cl78float16 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/
Dtraining_ops_test.py39 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/
Dopencl-c.h122 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/
Dloss_scale_optimizer_test.py44 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/
Dreduce_ops_test.py154 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/
Ddtypes.py326 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/
Dutil_test.py244 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 …]

12345678