Home
last modified time | relevance | path

Searched refs:output_grad (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/image/
Dresize_bilinear_op.cc236 typename TTypes<T, 4>::Tensor output_grad(st.output->tensor<T, 4>()); in Compute() local
239 st.width_scale, half_pixel_centers_, output_grad); in Compute()
246 Tensor output_grad; in Compute() local
248 DT_FLOAT, st.output->shape(), &output_grad)); in Compute()
251 st.width_scale, half_pixel_centers_, output_grad.tensor<float, 4>()); in Compute()
252 const Tensor& output_grad_const = output_grad; in Compute()
273 typename TTypes<T, 4>::Tensor output_grad) { in ResizeGradCore()
274 const Eigen::Index batch = output_grad.dimension(0); in ResizeGradCore()
275 const Eigen::Index original_height = output_grad.dimension(1); in ResizeGradCore()
276 const Eigen::Index original_width = output_grad.dimension(2); in ResizeGradCore()
[all …]
Dresize_bilinear_op_gpu.cu.cc174 T* __restrict__ output_grad) { in ResizeBilinearGradKernel() argument
203 GpuAtomicAdd(output_grad + in ResizeBilinearGradKernel()
209 GpuAtomicAdd(output_grad + in ResizeBilinearGradKernel()
217 GpuAtomicAdd(output_grad + in ResizeBilinearGradKernel()
223 GpuAtomicAdd(output_grad + in ResizeBilinearGradKernel()
238 float offset, T* __restrict__ output_grad) { in ResizeBilinearDeterministicGradKernel() argument
281 output_grad[out_idx] = acc; in ResizeBilinearDeterministicGradKernel()
340 T* __restrict__ output_grad) { in LegacyResizeBilinearGradKernel() argument
366 GpuAtomicAdd(output_grad + in LegacyResizeBilinearGradKernel()
372 GpuAtomicAdd(output_grad + in LegacyResizeBilinearGradKernel()
[all …]
Dresize_bicubic_op.cc476 typename TTypes<T, 4>::Tensor output_grad) { in ResizeBicubicGrad() argument
486 output_grad.setZero(); in ResizeBicubicGrad()
505 output_grad(b, y_wai.index_0, x_wai.index_0, c) += in ResizeBicubicGrad()
507 output_grad(b, y_wai.index_0, x_wai.index_1, c) += in ResizeBicubicGrad()
509 output_grad(b, y_wai.index_0, x_wai.index_2, c) += in ResizeBicubicGrad()
511 output_grad(b, y_wai.index_0, x_wai.index_3, c) += in ResizeBicubicGrad()
514 output_grad(b, y_wai.index_1, x_wai.index_0, c) += in ResizeBicubicGrad()
516 output_grad(b, y_wai.index_1, x_wai.index_1, c) += in ResizeBicubicGrad()
518 output_grad(b, y_wai.index_1, x_wai.index_2, c) += in ResizeBicubicGrad()
520 output_grad(b, y_wai.index_1, x_wai.index_3, c) += in ResizeBicubicGrad()
[all …]
Dresize_bilinear_op.h40 typename TTypes<T, 4>::Tensor output_grad);
Dresize_nearest_neighbor_op.h39 typename TTypes<T, 4>::Tensor output_grad);
Dscale_and_translate_op.cc438 typename TTypes<T, 4>::Tensor output_grad(output->tensor<T, 4>()); in Compute() local
476 intermediate_data, output_grad); in Compute()
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_to_tensor_op_test.py513 output_grad = [[9, 8, 7], [6, 5, 4], [3, 2, 1]]),
523 output_grad = [
534 output_grad = [
544 output_grad = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]),
554 output_grad = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]),
564 output_grad = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]),
574 output_grad = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]),
586 output_grad = [[[[1], [2]], [[3], [4]], [[5], [6]]],
600 output_grad = [[[[1], [2]], [[3], [4]], [[5], [6]]],
611 output_grad = [])
[all …]
/external/tensorflow/tensorflow/python/ops/
Dlinalg_grad.py143 def _GetGradReduced(output_grad, output_subs, input_subs, input_shape, argument
189 array_ops.reshape(output_grad, reduced_shape), input_shape)
198 [reduced_dims, array_ops.shape(output_grad)], axis=0)
205 array_ops.shape(output_grad)
211 array_ops.reshape(output_grad, reduced_shape),
220 def _GetGradWrt(output_grad, other_operand, input_shape, input_subs, argument
282 grad_reduced = gen_linalg_ops.einsum([output_grad, other_operand],
/external/tensorflow/tensorflow/python/eager/
Dbackprop_test.py1511 output_grad = array_ops.ones([])
1512 t.watch(output_grad)
1515 gc = tt.gradient(output, c, output_gradients=output_grad)
1522 transpose = t.gradient(gc, output_grad)
/external/tensorflow/tensorflow/python/kernel_tests/
Darray_ops_test.py1682 output_grad = gradient_checker_v2.compute_gradient(f, [input_tensor])
1683 self.assertAllClose(output_grad[0], np.zeros([1, 4, 4]))
Dcontrol_flow_ops_py_test.py3901 output_grad = control_flow_ops.while_loop(
3903 self.assertAllClose(600.0, self.evaluate(output_grad)[1])
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_transposer_test.cc161 auto output_grad = in CreateSimpleMaxPoolGrad() local
170 output_data, output_grad, {1, kKernel, kKernel, 1}, in CreateSimpleMaxPoolGrad()
175 output_data, output_grad, {1, kKernel, kKernel, 1}, in CreateSimpleMaxPoolGrad()