Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for variadicOk (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    func.func private @testIfElse(f32) -> f32
    
    // Test invalid tf.If operation
    func.func @testInvalidIfOp(tensor<i1>, f32) -> f32 {
    ^bb0(%arg0: tensor<i1>, %arg1: f32):
      // expected-error @+1 {{operand #1 must be variadic of tensor of tf.dtype values}}
      %1 = "tf.If"(%arg0, %arg1) {
        then_branch = @testIfThen,
        else_branch = @testIfElse,
        is_stateless = false
      } : (tensor<i1>, f32) -> f32
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

    }
    
    // Returns the number of elements in `range`.
    template <typename Range>
    size_t Size(Range&& range) {
      return range.size();
    }
    
    // Returns the total number of elements in a variadic number of `ranges`.
    template <typename Range, typename... RangeTs>
    size_t Size(Range&& range, RangeTs&&... ranges) {
      return range.size() + Size(std::forward<RangeTs>(ranges)...);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    //                   |
    //               value   [5, 8, 9]
    //
    //   This can actually be simplified into just:
    //
    //           =>   Value [5, 8, 9]
    // TODO(b/133341698): Move to tablegen when variadic is supported.
    struct RemoveRedundantUnpackPack : public RewritePattern {
      explicit RemoveRedundantUnpackPack(MLIRContext* context)
          : RewritePattern(PackOp::getOperationName(), 2, context) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          };
    
      if (inner_op->hasTrait<mlir::OpTrait::AttrSizedOperandSegments>() ||
          inner_op->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) {
        // The op has multiple variadic operands or results.
        // Calculate operand and result segment sizes using the OpDef.
        NameRangeMap input_ranges, output_ranges;
        // This will fail only if the OpDef is syntactically invalid.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/ops.mlir

    ^bb0(%arg0: tensor<? x f16>, %arg1: tensor<? x f16>, %arg2: tensor<? x f16>):
      // expected-error @+1 {{'tfl.add_n' op operand #0 must be variadic of tensor of 32-bit float or 32-bit signless integer}}
      %0 = "tfl.add_n"(%arg0, %arg1, %arg2): (tensor<? x f16>, tensor<? x f16>, tensor<? x f16>) -> tensor<? x f16>
      func.return %0 : tensor<? x f16>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
Back to top