Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 521 for Operands (0.12 sec)

  1. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

      if (extra_operands.empty()) return;
    
      const int operands_size = while_op.getNumOperands() + extra_operands.size();
      SmallVector<Value, 4> operands;
      operands.reserve(operands_size);
      operands.append(while_op.getOperands().begin(), while_op.getOperands().end());
      operands.append(extra_operands.begin(), extra_operands.end());
      SmallVector<Type, 4> new_types;
      new_types.reserve(operands_size);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. src/math/big/floatexample_test.go

    	// 2
    	// 4
    	// 8
    	// 16
    }
    
    func ExampleFloat_Cmp() {
    	inf := math.Inf(1)
    	zero := 0.0
    
    	operands := []float64{-inf, -1.2, -zero, 0, +1.2, +inf}
    
    	fmt.Println("   x     y  cmp")
    	fmt.Println("---------------")
    	for _, x64 := range operands {
    		x := big.NewFloat(x64)
    		for _, y64 := range operands {
    			y := big.NewFloat(y64)
    			fmt.Printf("%4g  %4g  %3d\n", x, y, x.Cmp(y))
    		}
    		fmt.Println()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

        OpBuilder<(ins "Value":$token, "ArrayRef<Value>":$operands,
          CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes),
        [{
          assert(operands.size() >= 1 && "tf_executor.NextIteration.Sink builder "
                 "expects at least one operand");
          $_state.operands.push_back(token);
          $_state.operands.insert($_state.operands.end(), operands.begin(),
                                  operands.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.cc

                                    llvm::SmallVector<Attribute>& results) {
      // If any operand is nullptr returns true for a failure.
      // TODO(b/120678030): remove this constraint if we find operators can be
      // evaluated with some unknown operands.
      if (std::any_of(operands.begin(), operands.end(),
                      [](Attribute operand) { return !operand; })) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.td

      let description = [{
        cond: The boolean to control whether the first iteration should be
          executed.
        operands: The arguments to the first iteration.
        results: The results of the last iteration. The number and types of results
          excluding the last one are the same as the number and types of operands. The
          last element of results is an I1 value that is false.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 22:07:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

    // Requires the function to provide arguments for each of the `fn` operands
    // that is compatible for tensor cast.
    static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg,
                             func::FuncOp fn, OpBuilder* builder) {
      FunctionType fn_type = fn.getFunctionType();
      llvm::SmallVector<Value, 4> operands;
      int num_operands = fn_type.getNumInputs();
      operands.reserve(num_operands);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/deadness_analysis.cc

        return operands_;
      }
      absl::Span<Predicate* const> operands() const { return operands_; }
    
     private:
      std::vector<Predicate*> operands_;
    };
    
    // Represents a logical negation of a set of predicates.
    class NotPredicate : public Predicate {
     public:
      explicit NotPredicate(int64_t id, Predicate* operand)
          : Predicate(id), operands_({operand}) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

        Interface for ops potentially have same operands and results scales.
      }];
    
      let methods = [
        InterfaceMethod<
          [{Returns whether same operands and results scales are required.}],
          "bool", "RequiredSameOperandsAndResultsScale",
          (ins "bool":$sign, "int":$bit_width), [{}], [{return true;}]
        >,
        InterfaceMethod<
          [{Returns whether operands and results must have the same quantized axis.}],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

      llvm::SmallVector<mlir::Type, 4> operand_types;
      if (options.has_chain) operand_types.push_back(chain_type);
      if (parser.resolveOperands(in_chains, operand_types, loc, result.operands) ||
          parser.resolveOperands(operands, tensor_type, result.operands))
        return mlir::failure();
    
      if (options.has_chain) result.types.push_back(chain_type);
      result.types.append(num_results, tensor_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

    // In order to be clustered operation can require its operands to satisfy
    // some constraints (e.g. reduction operation can require reduction dimension
    // operand to be a constant value).
    enum class ValueConstraint {
      // Operand must have statically known rank.
      kRank = 0,
      // Operand must have statically known shape (all dimensions are known at
      // compile time).
      kShape = 1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top