Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for seq_dim (0.1 sec)

  1. tensorflow/cc/gradients/array_grad.cc

      auto seq_lengths = op.input(1);
      int batch_dim;
      TF_RETURN_IF_ERROR(GetNodeAttr(op.node()->attrs(), "batch_dim", &batch_dim));
      int seq_dim;
      TF_RETURN_IF_ERROR(GetNodeAttr(op.node()->attrs(), "seq_dim", &seq_dim));
      grad_outputs->push_back(
          ReverseSequence(scope, grad_inputs[0], seq_lengths, seq_dim,
                          ReverseSequence::BatchDim(batch_dim)));
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

              ConstantAttr<RankedI64ElementsAttr<[]>,"static_cast<int64_t>(0)">))>;
    def LegalizeReverseSequence : Pat<
      (TF_ReverseSequenceOp $input, $seq_lengths, $seq_dim, $batch_dim),
      (TFL_ReverseSequenceOp $input, $seq_lengths,
          (convertIntAttrTo32Bit $seq_dim), (convertIntAttrTo32Bit $batch_dim))>;
    def LegalizeRound : Pat<(TF_RoundOp $arg), (TFL_RoundOp $arg)>;
    def LegalizeRsqrt : Pat<(TF_RsqrtOp $arg), (TFL_RsqrtOp $arg)>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/array_grad_test.cc

      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
      auto seq_lengths = Const(scope_, {1, 2, 3, 4, 5});
      // batch_dim defaults to 0.
      auto y = ReverseSequence(scope_, x, seq_lengths, /* seq_dim */ 2);
      RunTest(x, shape, y, shape);
    }
    
    TEST_F(ArrayGradTest, ReverseGrad) {
      TensorShape shape({5, 2, 5});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

      func.func @reverse_sequence(%arg0: tensor<4x2x3x1x1xi32>, %arg1: tensor<3xi32>) -> tensor<4x2x3x1x1xi32> {
        // CHECK-NOT: tf.ReverseSequence
        %0 = "tf.ReverseSequence"(%arg0, %arg1) {batch_dim = 2 : i64, seq_dim = 0 : i64}: (tensor<4x2x3x1x1xi32>, tensor<3xi32>) -> tensor<4x2x3x1x1xi32>
        func.return %0 : tensor<4x2x3x1x1xi32>
      }
    
      // CHECK-LABEL: mirror_pad
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (1)
Back to top