Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for yield (0.1 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/extract_outside_compilation.mlir

              "tf.Yield"() : () -> ()
            }, {
              "tf.Yield"() : () -> ()
            }) { is_stateless = false} : (tensor<i1>) -> ()
    
            "tf.IfRegion"(%6) ({
              "tf.F"(%3) {_xla_outside_compilation = "auto"} : (tensor<2xi32>) -> ()
              "tf.Yield"() : () -> ()
            }, {
              "tf.Yield"() : () -> ()
            }) { is_stateless = false} : (tensor<i1>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 129.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

                                     {"tf.Yield"(%if3) : (!tf_variant) -> ()})
            {is_stateless = true} : (tensor<i1>) -> !tf_variant
        %if5 = "tf.IfRegion"(%arg0) ({"tf.Yield"(%if4) : (!tf_variant) -> ()},
                                     {"tf.Yield"(%if4) : (!tf_variant) -> ()})
            {is_stateless = true} : (tensor<i1>) -> !tf_variant
        %if6 = "tf.IfRegion"(%arg0) ({"tf.Yield"(%if5) : (!tf_variant) -> ()},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

                // expected-remark@above {{ID: 2}}
                  tf_executor.yield %arg1 : tensor<i1>
                  // expected-remark@above {{ID: 1}}
                }
                tf_executor.fetch %island#0 : tensor<i1>
                // expected-remark@above {{ID: 3}}
              }
              "tf.Yield"(%graph) : (tensor<i1>) -> ()
              // expected-remark@above {{ID: 5}}
            }, { // Else region
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      func.return %1 : tensor<2xf32>
    }
    
    // -----
    
    // Test invalid tf.Yield operation (parent should be IfRegion)
    func.func @testInvalidYieldOp(%arg0: f32) -> () {
      // expected-error @+1 {{'tf.Yield' op expects parent op to be one of 'tf.CaseRegion, tf.IfRegion, tf.WhileRegion, tf.GeneratorDatasetRegion'}}
      "tf.Yield"(%arg0) : (f32) -> ()
    }
    
    // -----
    
    // Test valid tf.IfRegion operation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

        "tf.IfRegion"(%0) ( {
          %2 = "tf.A"() : () -> (tensor<f32>)
          "tf.Yield"() : () -> ()
          }, {
          "tf.Yield"() : () -> ()
         }) { is_stateless = true } : (tensor<i1>) -> ()
        "tf.IfRegion"(%0) ( {
          %2 = "tf.B"() : () -> (tensor<f32>)
          "tf.Yield"() : () -> ()
          }, {
          "tf.Yield"() : () -> ()
          }) { is_stateless = true } : (tensor<i1>) -> ()
        ```
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK:   %[[MUL:.*]] = "tf.Mul"(%[[ARG0]], %[[ARG1]])
      // CHECK:   "tf.Yield"(%[[MUL]]) : (tensor<f32>)
      // CHECK:  },  {
      // CHECK:    %[[SUB:.*]] = "tf.Sub"(%[[ARG0]], %[[ARG1]])
      // CHECK:    "tf.Yield"(%[[SUB]]) : (tensor<f32>)
      // CHECK:  },  {
      // CHECK:    %[[ADD:.*]] = "tf.AddV2"(%[[ARG0]], %[[ARG1]])
      // CHECK:    "tf.Yield"(%[[ADD]]) : (tensor<f32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

                        yield.getOperands().begin());
    }
    
    mlir::LogicalResult ControlNodeOp::verify() {
      ControlNodeOp control_node = *this;
      if (!control_node.GetBody().args_empty())
        return control_node.emitOpError() << "expects body without any arguments";
    
      Operation& yield = control_node.GetBody().back();
      if (!isa<YieldOp>(yield))
        return yield.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          outlier = np.random.uniform(low=0, high=10, size=(1, 3, 4, 3)).astype(
              'f4'
          )
          outlier[0][0][0][0:2] = [-1000, 1000]
          yield {'input_tensor': ops.convert_to_tensor(outlier)}
          for _ in range(10):
            yield {
                'input_tensor': ops.convert_to_tensor(
                    np.random.uniform(low=0, high=10, size=(1, 3, 4, 3)).astype(
                        'f4'
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      // Allow either the "yield cond" or "yield cond, arg1, ... argN" form,
      // for the yield in the condition block.
      if (cond_yield->getNumOperands() != 1 &&
          cond_yield->getNumOperands() != op.getCond().getArguments().size() + 1)
        return op.emitOpError()
               << "condition should yield a tensor<i1> and forward the arguments";
    
      auto cond_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      // Inline the region in place of the IfRegion op, and forward the yield
      // inputs to the IfRegion op results. This is possible only if the yield
      // types match the result types.
      auto yield = cast<YieldOp>(region.front().getTerminator());
      auto updated_results = llvm::to_vector<4>(yield.getOperands());
    
      // If the yield types do not match the IfRegion result types, add appropriate
      // casts.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
Back to top