Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for MirrorPad (0.46 sec)

  1. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-include-tf2xla-fallback.mlir

      %0 = mhlo.constant dense<[[1, 1], [2, 2]]> : tensor<2x2xi32>
      // NO_FALLBACK: tf.MirrorPad
      // SUPPORTED_FALLBACK_DEVICE-NOT: tf.MirrorPad
      // UNSPECIFIED_FALLBACK_DEVICE: tf.MirrorPad
      // UNSUPPORTED_FALLBACK_DEVICE: tf.MirrorPad
      %1 = "tf.MirrorPad"(%arg0, %0) {mode = "SYMMETRIC"} : (tensor<2x3xcomplex<f64>>, tensor<2x2xi32>) -> tensor<4x7xcomplex<f64>>
      func.return %1 : tensor<4x7xcomplex<f64>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 19:04:03 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/fuzzing/op_fuzzing.bzl

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 07 19:14:57 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  3. 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.MirrorPad,
                                   ops_defs._composite_mirror_pad, 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)
  4. tensorflow/cc/gradients/array_grad_test.cc

      TensorShape y_shape({4, 7});
      auto y = MirrorPad(scope_, x, paddings, "REFLECT");
      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(ArrayGradTest, MirrorPadGrad_Symmetric) {
      TensorShape x_shape({2, 3});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      auto paddings = Const(scope_, {{1, 1}, {2, 2}});
      TensorShape y_shape({4, 7});
      auto y = MirrorPad(scope_, x, paddings, "SYMMETRIC");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/array_grad.cc

      grad_outputs->push_back(tensorflow::ops::internal::MirrorPadGrad(
          scope, grad_inputs[0], op.input(1), mode));
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    REGISTER_GRADIENT_OP("MirrorPad", MirrorPadGrad);
    
    // TODO(suharshs): b/34770860. This gradient was within 1e-3 but not 1e-4.
    Status MirrorPadGradGrad(const Scope& scope, const Operation& op,
                             const std::vector<Output>& grad_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

      // CHECK-LABEL: mirror_pad
      func.func @mirror_pad(%arg0: tensor<2x3xcomplex<f64>>) -> tensor<4x7xcomplex<f64>> {
        %0 = mhlo.constant dense<[[1, 1], [2, 2]]> : tensor<2x2xi32>
        // CHECK-NOT: tf.MirrorPad
        %1 = "tf.MirrorPad"(%arg0, %0) {mode = "SYMMETRIC"} : (tensor<2x3xcomplex<f64>>, tensor<2x2xi32>) -> tensor<4x7xcomplex<f64>>
        func.return %1 : tensor<4x7xcomplex<f64>>
      }
    
      // CHECK-LABEL: bucketize
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    }
    
    func.func @mirror_pad(tensor<2x1x3xf32>, tensor<3x2xi32>) -> tensor<? x f32> {
    ^bb0(%arg0: tensor<2x1x3xf32>, %arg1: tensor<3x2xi32>):
      %0 = "tf.MirrorPad"(%arg0, %arg1) { mode = "SYMMETRIC" }: (tensor<2x1x3xf32>, tensor<3x2xi32>) -> tensor<? x f32>
      func.return %0#0 : tensor<? x f32>
    
      // CHECK-LABEL: mirror_pad
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

                         SameOperandsAndResultsScale,
                         QuantizableResult,
                         Pure,
                         TFL_OperandHasRank<1, 2>]> {
      let summary = "MirrorPad Operator. Pads a tensor with mirrored values.";
    
      let description = [{
        This operation pads a input with mirrored values according to the paddings
        you specify. paddings is an integer tensor with shape [n, 2],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      %paddings = "tf.Const"() {value = dense<[0, 1]> : tensor<2xi64>} : () -> tensor<2xi64>
      // expected-error @+1 {{failed to verify that operand 1 is 2-D}}
      %0 = "tf.MirrorPad"(%input, %paddings) { mode = "SYMMETRIC" }: (tensor<2xi64>, tensor<2xi64>) -> tensor<3xi64>
      func.return %0 : tensor<3xi64>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
Back to top