Commit a6773e98 authored by RJ Ryan's avatar RJ Ryan Committed by TensorFlower Gardener
Browse files

Add a PadV2 op with support for specifying a pad value.

Added a `constant_values` keyword argument to the tf.pad Python API for compatibility with numpy.pad. For now, only scalar values are supported. To efficiently support specifying a `[D, 2]` tensor for `constant_values` to pick per-dimension pre/post constant values will require adding Eigen and XLA support first.

PiperOrigin-RevId: 161460091
parent 285f9766
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment