Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mirror_pad_grad (0.45 sec)

  1. tensorflow/compiler/mlir/tfr/examples/pad/ops_defs.py

        input_ = tf.raw_ops.Concat(
            concat_dim=i, values=[left_padding, input_, right_padding])
      return input_
    
    
    @tf.RegisterGradient('NewMirrorPad')
    def _mirror_pad_grad(op, grad):
      mode = op.get_attr('mode')
      return [gen_array_ops.mirror_pad_grad(grad, op.inputs[1], mode=mode), None]
    
    
    @Composite(
        'NewMirrorPadGrad',
        inputs=['input_: T', 'paddings: Tpaddings'],
        attrs=['mode: {"REFLECT", "SYMMETRIC"}'],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 01 05:00:29 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/examples/pad/pad_ops_test.py

        kwargs_ = {
            'input_': input_,
            'paddings': paddings,
            'mode': mode,
        }
        # Make sure the composition python function is correct
        self._assertOpAndComposite([input_], tf.raw_ops.MirrorPadGrad,
                                   ops_defs._composite_mirror_pad_grad, kwargs_,
                                   kwargs)
        # Make sure the translation and decomposition is correct
        self._assertOpAndComposite([input_],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 3.4K bytes
    - Viewed (0)
Back to top