Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 461 for operand$i (0.43 sec)

  1. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

             matchPattern(op, m_Constant()) || isa<QConstOp>(op);
    }
    
    // Pre-order traverse, adding results and BlockArgs to `been_defined` and
    // collecting operands not contained within `been_defined`. If we encounter an
    // operand that references a Value that has been defined (and added to
    // `been_defined`) it is garuanteed that the Value definition is not contained
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      if (flatten_tuple) {
        auto operands = llvm::to_vector(values);
        operands.push_back(token);
        return operands;
      }
    
      auto value = values[0];
      // If value with token already exists, reuse it.
      auto it = rewritten_values.find(value);
      if (it != rewritten_values.end()) return {it->getSecond()};
    
      auto create_tuple = [&](ArrayRef<Value> operands) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      rewriter.replaceAllUsesExcept(result, new_value, new_value.getDefiningOp());
    }
    
    // Wrap operands in an an unrealized cast to create a cast to buffer any type
    // changes to the operand, and apply type converter to operands:
    //   V0 = op(operand)
    //   ==>
    //   V0 = unrealized_cast(operand)
    //   V1 = op(V0)
    void WrapOperandsInUnrealizedCastAndConvert(Operation *op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        llvm::SmallVector<Value, 4> operands(addn_op.getInputs().begin(),
                                             addn_op.getInputs().end());
    
        int64_t n = operands.size();
        // Keep doing tree-based reduction when there are more than one operand.
        while (n > 1) {
          for (int64_t i = 0; i < n; i += 2) {
            // Add two adjacent operands if applicable.
            operands[i / 2] =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

        return;
      }
    
      Operation* input_def = input.getDefiningOp();
    
      // If ShapeOp operand is a ReadVariableOp result where the ReadVariableOp
      // operand is a replicate resource block argument, replace ShapeOp with
      // VariableShapeOp and use the associated first replica operand as its
      // operand.
      auto read_var_op = llvm::dyn_cast<TF::ReadVariableOp>(input_def);
      if (!read_var_op) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/go/parser/testdata/issue44504.src

    // license that can be found in the LICENSE file.
    
    // Test case for go.dev/issue/44504: panic due to duplicate resolution of slice/index
    // operands. We should not try to resolve a LHS expression with invalid syntax.
    
    package p
    
    func _() {
      var items []bool
      items[] /* ERROR "operand" */ = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 410 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

        // Collect operands of cluster op that are generated within the cluster.
        // These values should be returned by the cluster.
        cluster_op.walk([&](Operation* op) {
          for (Value operand : op->getOperands()) {
            Operation* operand_op = GetOpOfValue(operand);
            if (operand_op->getParentRegion() == cluster_region)
              cluster_results_set.insert(operand);
          }
        });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

    // we will use the original operand's type, otherwise update it with the
    // unranked tensor type.
    template <typename R>
    void UpdateTensorListTypes(
        const llvm::SmallSet<int, 4> &tensor_list_index,
        const llvm::SmallSet<int, 4> &resized_tensor_list_index,
        ArrayRef<Type> types, R &&range, ValueRange operands,
        llvm::SmallVectorImpl<Type> *updated_types) {
      int i = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/shifts.go

    	var s uint
    	_ = 1.0 /* ERROR "shifted operand 1.0 (type float64) must be integer" */ <<s == 1
    	_ = 1.0 /* ERROR "shifted operand 1.0 (type float64) must be integer" */ <<s == 1.0
    	_ = 1 /* ERROR "shifted operand 1 (type float64) must be integer" */ <<s == 1.0
    	_ = 1 /* ERROR "shifted operand 1 (type float64) must be integer" */ <<s + 1.0 == 1
    	_ = 1 /* ERROR "shifted operand 1 (type float64) must be integer" */ <<s + 1.1 == 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

        // The map contains all the quantization parameters which are required to
        // satisfy the same operands and results constraint. The keys of this map
        // are the values from `operand_states_` and `result_state_`.
        std::unordered_map<int, RequantizeState> rescale_states_;
    
        // Maps of indexes to the propagation state vector from the ops operands,
        // results and arguments.
        llvm::DenseMap<OpValue, int> operand_states_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top