Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for yield4x (0.18 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      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()
               << "invalid TFL.control_node terminator, yield expected";
    
      // Ensure that the terminator's operands and the control_node results match in
      // types.
      const int result_count =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      def _simple_model_data_gen(self) -> repr_dataset.RepresentativeDataset:
        """Creates an interable of representative samples.
    
        Yields:
          Representative samples, which is basically a mapping of: input key ->
          input value.
        """
        for _ in range(8):
          yield {
              'input_tensor': ops.convert_to_tensor(
                  np.random.uniform(low=0, high=150, size=(1, 4)).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)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        // if they are yielded they always have to be forwarded 1:1.
        auto forwarded_operands = cond_yield->getOperands().drop_front(1);
        for (auto [arg, yield] :
             llvm::zip(op.getCond().getArguments(), forwarded_operands)) {
          if (arg != yield) {
            return op.emitOpError()
                   << "arguments on condition block aren't forwarded to yield";
          }
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

          %x_true = ...
          %y_true = ...
          tfl.yield %x_true, %y_true : tensor<f32>, tensor<f32>
        } else {
          %x_false = ...
          %y_false = ...
          tfl.yield %x_false, %y_false : tensor<f32>, tensor<f32>
        }
        ```
    
        `tfl.if` regions are always terminated with "tfl.yield". If "tfl.if"
        defines no values, the "tfl.yield" can be left out, and will be inserted
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          // each region and the use of TensorList returned using YieldOp.
          if (auto while_region = llvm::dyn_cast<WhileRegionOp>(use.getOwner())) {
            DCOMMENT("\tTL WhileRegion");
            for (auto branch : while_region.getRegions())
              add_to_worklist(branch->getArgument(use.getOperandNumber()));
            continue;
          }
          if (auto yield = llvm::dyn_cast<YieldOp>(use.getOwner())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  8. 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)
  9. doc/go1.17_spec.html

    <pre>
    (*T).Mp
    </pre>
    
    <p>
    yields a function value representing <code>Mp</code> with signature
    </p>
    
    <pre>
    func(tp *T, f float32) float32
    </pre>
    
    <p>
    For a method with a value receiver, one can derive a function
    with an explicit pointer receiver, so
    </p>
    
    <pre>
    (*T).Mv
    </pre>
    
    <p>
    yields a function value representing <code>Mv</code> with signature
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/ops.mlir

        %1 = func.call @WhileOp_cond(%arg2, %arg3) : (tensor<*xi32>, tensor<*xf32>) -> tensor<i1>
        "tfl.yield"(%1) : (tensor<i1>) -> ()
      },  {
      ^bb0(%arg2: tensor<*xi32>, %arg3: tensor<*xf32>):
        %1:2 = func.call @WhileOp_body(%arg2, %arg3) : (tensor<*xi32>, tensor<*xf32>) -> (tensor<*xi32>, tensor<*xf32>)
        "tfl.yield"(%1#0, %1#1) : (tensor<*xi32>, tensor<*xf32>) -> ()
      }) : (tensor<i32>, tensor<1xf32>) -> (tensor<i32>)
    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