/external/tensorflow/tensorflow/python/ops/ |
D | gradient_checker.py | 56 def _compute_theoretical_jacobian(x, x_shape, x_data, dy, dy_shape, dx, argument 107 feed_dict=_extra_feeds(extra_feed_dict, {x: x_data, dy: dy_data})) 115 dx, feed_dict=_extra_feeds(extra_feed_dict, {x: x_data, dy: dy_data})) 123 dx, feed_dict=_extra_feeds(extra_feed_dict, {x: x_data, dy: dy_data})) 124 if backprop.shape != x_data.shape: 126 (x_data.shape, backprop.shape)) 134 def _compute_numeric_jacobian(x, x_shape, x_data, y, y_shape, delta, argument 164 if x_data.dtype == dtypes.bfloat16.as_numpy_dtype: 165 x_data = x_data.astype(np.float32) 174 x_data = np.asarray(x_data, dtype=x.dtype.as_numpy_dtype) [all …]
|
D | image_ops_test.py | 246 x_data = np.random.uniform(0, 255, (8, 8)) 247 x_np = np.array(x_data, dtype=np.float32) 260 x_data = np.random.uniform(0, 255, (8, 8)) 261 x_np = np.array(x_data, dtype=np.float32) 279 x_data = np.random.uniform(0, 255, (8, 8)) 280 x_np = np.array(x_data, dtype=np.float32) 299 x_data = np.random.uniform(0, 255, (8, 8)) 300 x_np = np.array(x_data, dtype=np.float32) 360 x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1] 361 x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape) [all …]
|
/external/tensorflow/tensorflow/cc/gradients/ |
D | image_grad_test.cc | 54 void MakeOp(const OpType op_type, const Tensor& x_data, const Input& y_shape, in MakeOp() argument 57 *x = Const<T>(scope_, x_data); in MakeOp() 82 Tensor x_data = MakeData<T>(x_shape); in TestResizedShapeForType() local 84 MakeOp<T>(op_type, x_data, {4, 6}, align_corners, half_pixel_centers, &x, in TestResizedShapeForType() 115 Tensor x_data = MakeData<X_T>(x_shape); in TestResizeToSmallerAndAlign() local 117 MakeOp<X_T>(op_type, x_data, {2, 3}, align_corners, half_pixel_centers, &x, in TestResizeToSmallerAndAlign() 121 scope_, x, x_data, y, {1, 2, 3, 1}, &max_error))); in TestResizeToSmallerAndAlign() 130 Tensor x_data = MakeData<X_T>(x_shape); in TestResizeToLargerAndAlign() local 132 MakeOp<X_T>(op_type, x_data, {4, 6}, align_corners, half_pixel_centers, &x, in TestResizeToLargerAndAlign() 136 scope_, x, x_data, y, {1, 4, 6, 1}, &max_error))); in TestResizeToLargerAndAlign() [all …]
|
D | math_grad_test.cc | 101 Tensor x_data(x_type, shape); in TestCWiseGrad() local 102 auto x_data_flat = x_data.flat<X_T>(); in TestCWiseGrad() 206 TF_ASSERT_OK((ComputeGradientError<X_T, Y_T, float>(scope_, x, x_data, y, in TestCWiseGrad()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | half_test.cc | 55 auto x_data = CreateR1Parameter<half>(x, /*parameter_number=*/0, "x", in XLA_TEST_P() local 67 ComputeAndCompareR1<half>(&builder, expected, {x_data.get()}, error_spec_); in XLA_TEST_P() 109 auto x_data = CreateR1Parameter<half>(x, /*parameter_number=*/0, "x", in XLA_TEST_P() local 122 ComputeAndCompareR1<bool>(&builder, expected, {x_data.get()}); in XLA_TEST_P() 145 auto x_data = CreateR1Parameter<half>(x, /*parameter_number=*/0, "x", in XLA_TEST_P() local 161 ComputeAndCompareR1<half>(&builder, expected, {x_data.get(), y_data.get()}, in XLA_TEST_P() 199 auto x_data = CreateR1Parameter<half>(x, /*parameter_number=*/0, "x", in XLA_TEST_P() local 216 ComputeAndCompareR1<bool>(&builder, expected, {x_data.get(), y_data.get()}); in XLA_TEST_P()
|
D | deep_graph_test.cc | 29 auto x_data = CreateR0Parameter<int32>(3, 0, "x", &b, &x); in TEST_F() local 36 {x_data.get(), y_data.get()}); in TEST_F()
|
D | dot_operation_test.cc | 577 auto x_data = this->client_ in XLA_TYPED_TEST() local 602 {x_data.get(), y_data.get()}, this->error_spec_); in XLA_TYPED_TEST() 622 auto x_data = in XLA_TYPED_TEST() local 638 {x_data.get(), y_data.get()}, this->error_spec_); in XLA_TYPED_TEST() 659 auto x_data = in XLA_TYPED_TEST() local 672 /*expected=*/{{1.0f, 2.0f}, {7.0f, 8.0f}}, {x_data.get(), y_data.get()}, in XLA_TYPED_TEST() 693 auto x_data = this->client_ in XLA_TYPED_TEST() local 706 /*expected=*/{{1.0f, 2.0f}, {7.0f, 8.0f}}, {x_data.get(), y_data.get()}, in XLA_TYPED_TEST() 730 auto x_data = in XLA_TYPED_TEST() local 750 {x_data.get(), y_data.get()}, this->error_spec_); in XLA_TYPED_TEST()
|
D | concat_test.cc | 565 auto x_data = client_->TransferToServer(x_literal).ConsumeValueOrDie(); in XLA_TEST_F() local 578 {x_data.get(), y_data.get()}, ErrorSpec(1e-4)); in XLA_TEST_F() 588 auto x_data = client_->TransferToServer(x_literal).ConsumeValueOrDie(); in XLA_TEST_F() local 604 {x_data.get(), y_data.get(), z_data.get()}, ErrorSpec(1e-4)); in XLA_TEST_F() 616 auto x_data = client_->TransferToServer(x_literal).ConsumeValueOrDie(); in XLA_TEST_F() local 634 {x_data.get(), y_data.get(), z_data.get()}, in XLA_TEST_F()
|
D | replay_test.cc | 95 std::unique_ptr<GlobalData> x_data = in XLA_TEST_F() local 104 /*arguments=*/{x_data.get(), y_data.get()}, in XLA_TEST_F()
|
D | broadcast_simple_test.cc | 253 auto x_data = CreateR2Parameter<bool>(x_vals, 0, "x", &b, &x); in XLA_TEST_F() local 263 ComputeAndCompareR3<bool>(&b, expected, {x_data.get(), y_data.get()}); in XLA_TEST_F()
|
D | array_elementwise_ops_test.cc | 2960 auto x_data = client_->TransferToServer(x_literal).ConsumeValueOrDie(); in XLA_TEST_F() local 2968 ComputeAndCompareR1<float>(&builder, {-2, -3}, {x_data.get(), y_data.get()}, in XLA_TEST_F()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_mul_op.cc | 113 void VectorMultiply(OpKernelContext* context, const T* x_data, int32 offset_x, in VectorMultiply() argument 117 output[i] = (static_cast<int32>(x_data[i]) - offset_x) * in VectorMultiply() 125 const quint8* x_data, int32 offset_x, in VectorMultiply() argument 134 const uint8* x_data_ptr = &(x_data->value) + i; in VectorMultiply() 182 output[i] = (static_cast<int32>(x_data[i]) - offset_x) * in VectorMultiply() 312 const T* x_data = x.flat<T>().data(); in Compute() local 320 x_data[0], offset_x, z_data); in Compute() 322 ScalarMultiply<T, Toutput>(context, x_data, offset_x, x.NumElements(), in Compute() 325 VectorMultiply<T, Toutput>(context, x_data, offset_x, y_data, offset_y, in Compute() 336 vector_data = x_data; in Compute() [all …]
|
D | quantized_add_op.cc | 159 void VectorAddition(OpKernelContext* context, const T* x_data, float min_x, in VectorAddition() argument 165 x_data[i], min_x, max_x, output_min, output_max); in VectorAddition() 175 void VectorAddition(OpKernelContext* context, const quint8* x_data, float min_x, in VectorAddition() argument 208 const uint8* x_ptr = &(x_data->value) + i; in VectorAddition() 225 const int64 x_value = static_cast<int64>(x_data[i]); in VectorAddition() 244 void VectorAddition(OpKernelContext* context, const quint8* x_data, float min_x, in VectorAddition() argument 270 const int64 x_value = static_cast<int64>(x_data[i]); in VectorAddition() 483 const T* x_data = x.flat<T>().data(); in Compute() local 502 y.NumElements(), x_data[0], min_x, max_x, in Compute() 505 ScalarAddition<T, Toutput>(context, x_data, min_x, max_x, in Compute() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | slicing_test.cc | 62 auto x_data = CreateR0Parameter<int>(2, 1, "x", &builder, &x); in XLA_TEST_F() local 67 {a_data.get(), x_data.get(), y_data.get()}, in XLA_TEST_F() 92 auto x_data = CreateR0Parameter<int>(2, 2, "x", &builder, &x); in XLA_TEST_F() local 102 {a_data.get(), b_data.get(), x_data.get(), y_data.get()}); in XLA_TEST_F()
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | image_ops_test.py | 121 x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1] 122 x_np = np.array(x_data, dtype=np.float32).reshape(x_shape) / 255. 134 x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1] 135 x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape) 175 x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1] 176 x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape) 193 x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1] 194 x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape) 211 x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1] 212 x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape) [all …]
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_dnn.h | 547 const DeviceMemory<float>& x_data, 558 const DeviceMemory<Eigen::half>& x_data, 569 const DeviceMemory<float>& x_data, 580 const DeviceMemory<Eigen::half>& x_data, 722 const dnn::BatchDescriptor& x_descriptor, const DeviceMemory<T>& x_data, 733 const dnn::BatchDescriptor& x_descriptor, const DeviceMemory<T>& x_data,
|
D | rocm_dnn.cc | 4132 const dnn::BatchDescriptor& x_descriptor, const DeviceMemory<T>& x_data, in DoFusedBatchNormActivationInferenceImpl() argument 4178 status = fusion_plan.Execute(x_nd.handle(), x_data.opaque(), in DoFusedBatchNormActivationInferenceImpl() 4207 const DeviceMemory<float>& x_data, in DoFusedBatchNormActivationInference() argument 4216 stream, miopenFloat, x_descriptor, x_data, in DoFusedBatchNormActivationInference() 4223 const DeviceMemory<Eigen::half>& x_data, in DoFusedBatchNormActivationInference() argument 4232 stream, miopenHalf, x_descriptor, x_data, in DoFusedBatchNormActivationInference() 4241 const dnn::BatchDescriptor& x_descriptor, const DeviceMemory<T>& x_data, in DoFusedBatchNormActivationForwardImpl() argument 4290 status = fusion_plan.Execute(x_nd.handle(), x_data.opaque(), in DoFusedBatchNormActivationForwardImpl() 4319 const DeviceMemory<float>& x_data, in DoFusedBatchNormActivationForward() argument 4328 stream, miopenFloat, x_descriptor, x_data, in DoFusedBatchNormActivationForward() [all …]
|
/external/tensorflow/tensorflow/contrib/gan/python/features/python/ |
D | spectral_normalization_test.py | 126 x_data = np.random.rand(*x.shape) 152 _ = sess.run(net, feed_dict={x: x_data})
|
/external/tensorflow/tensorflow/contrib/cudnn_rnn/python/kernel_tests/ |
D | cudnn_rnn_test.py | 1108 x_data = sess.run(x) 1109 x_size = x_data.size 1110 x_shape = x_data.shape 1112 numeric_grad = np.zeros(x_size, dtype=x_data.dtype) 1115 x_pos = x_data.copy() 1123 x_neg = x_data.copy()
|
/external/tensorflow/tensorflow/stream_executor/ |
D | dnn.h | 2394 const DeviceMemory<float>& x_data, 2407 const DeviceMemory<Eigen::half>& x_data, 2448 const DeviceMemory<float>& x_data, 2461 const DeviceMemory<Eigen::half>& x_data,
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 13168 void *x_data, *y_data, *z_data; in unicode_maketrans_impl() local 13184 x_data = PyUnicode_DATA(x); in unicode_maketrans_impl() 13187 key = PyLong_FromLong(PyUnicode_READ(x_kind, x_data, i)); in unicode_maketrans_impl()
|