Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 476 for Operands (0.13 sec)

  1. src/go/types/operand.go

    	cgofunc:   "cgo function",
    }
    
    // An operand represents an intermediate value during type checking.
    // Operands have an (addressing) mode, the expression evaluating to
    // the operand, the operand's type, a value for constants, and an id
    // for built-in functions.
    // The zero value of operand is a ready to use invalid operand.
    type operand struct {
    	mode operandMode
    	expr ast.Expr
    	typ  Type
    	val  constant.Value
    	id   builtinId
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    // operand.
    class TF_DerivedOperandSizeAttr<int idx> : DerivedAttr<
      "size_t",
      "auto range = getODSOperands(" # idx # ");\n"
      "return std::distance(range.begin(), range.end());",
      [{ $_builder.getI64IntegerAttr($_self) }]>;
    
    // A derived attribute that returns the element type of `idx`-th ODS-declared
    // operand. If the `idx`-th operand is a variadic operand, then this attribute
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

          Value operand = op->getOperand(i);
          if (Operation* inst = operand.getDefiningOp()) {
            // If the operand comes from a `quantfork::DequantizeCastOp`, we use
            // the quantized input of this `quantfork::DequantizeCastOp` to set the
            // state.
            if (auto dq = dyn_cast<quantfork::DequantizeCastOp>(inst)) {
              operand = dq.getArg();
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K 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/quantization/common/quantization_lib/quantization_utils.h

    struct OpQuantSpec {
      // Maps the operand index of a bias input to its quantization specifications,
      // including the non-bias operand indexes and the method retrieving
      // quantization parameters from list of parameters of the non-bias operands.
      // This map is empty if the op doesn't have a bias operand.
      BiasParamsMap biases_params;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // that was extracted..
    
      // Find the input edges to form the set of operands to the new function call.
      llvm::SetVector<Value> inputs;
      for (Operation* op : ops) {
        for (Value operand : op->getOperands()) {
          Operation* defining_op = operand.getDefiningOp();
          if (!ops.contains(defining_op)) inputs.insert(operand);
        }
      }
      // Find the output edges to form the set of resutls of the new function call.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      auto replace_operand_usage = [&](OpOperand& operand) {
        if (mlir::TF::CanBeRefined(operand.get().getType()) ||
            HasDynamicOutputs(operand.getOwner())) {
          return insertion_point->getParentRegion()->isAncestor(
              operand.getOwner()->getParentRegion());
        }
        return insertion_point->getParentRegion()->isAncestor(
                   operand.getOwner()->getParentRegion()) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    OpFoldResult RangeOp::fold(FoldAdaptor adaptor) {
      auto operands = adaptor.getOperands();
      assert(operands.size() == 3);
      auto start_tensor = operands[0].dyn_cast_or_null<ElementsAttr>();
      auto limit_tensor = operands[1].dyn_cast_or_null<ElementsAttr>();
      auto delta_tensor = operands[2].dyn_cast_or_null<ElementsAttr>();
      if (!(start_tensor && limit_tensor && delta_tensor)) return nullptr;
    
      // Operands should all be scalars
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue52031.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type resultFlags uint
    
    // Example from #52031.
    //
    // The following shifts should not produce errors on Go < 1.13, as their
    // untyped constant operands are representable by type uint.
    const (
    	_ resultFlags = (1 << iota) / 2
    
    	reportEqual
    	reportUnequal
    	reportByIgnore
    	reportByMethod
    	reportByFunc
    	reportByCycle
    )
    
    // Invalid cases.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 733 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.h

    namespace TF {
    
    // Checks whether the given TF operation can be folded or not.
    bool CanBeFolded(Operation* inst);
    
    // Evaluates the operation with given operand values.
    LogicalResult EvaluateOperation(Operation* inst,
                                    llvm::ArrayRef<ElementsAttr> operands,
                                    llvm::SmallVector<Attribute>& results);
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 23:44:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top