Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 237 for Operands (0.37 sec)

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

        }
        // op has implict arguments not listed in operands.
        // Fact: if every op's operands are defined in the same block as op,
        //       then no operation has implicit arugments (constant doesn't count).
        for (auto operand : op->getOperands()) {
          if (mlir::dyn_cast_or_null<BlockArgument>(operand)) continue;
          auto operand_op = operand.getDefiningOp();
          if (IsConstant(operand_op)) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

    OpFoldResult TFR::EqualOp::fold(FoldAdaptor adaptor) {
      auto operands = adaptor.getOperands();
      assert(operands.size() == 2 && "equal op has two operands");
      auto ctx = getContext();
      if (operands[0] == operands[1]) return BoolAttr::get(ctx, true);
      return BoolAttr::get(ctx, false);
    }
    
    OpFoldResult ConstOp::fold(FoldAdaptor adaptor) {
      auto operands = adaptor.getOperands();
      (void)operands;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. src/crypto/internal/bigmod/nat.go

    	keep := not(choice(underflow)) | choice(always)
    	x.assign(keep, t)
    }
    
    // Sub computes x = x - y mod m.
    //
    // The length of both operands must be the same as the modulus. Both operands
    // must already be reduced modulo m.
    func (x *Nat) Sub(y *Nat, m *Modulus) *Nat {
    	underflow := x.sub(y)
    	// If the subtraction underflowed, add m.
    	t := NewNat().set(x)
    	t.add(m.nat)
    	x.assign(choice(underflow), t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

    The `tf_executor.graph` operation does not accept any operands, inputs are
    implicitly captured by the region, representing the feeds to the graph.
    
    The region attached to `tf_executor.graph` is terminated by a
    `tf_executor.fetch` operation. The non-control operands of the terminator
    correspond to the result values (or fetches) of the `tf_executor.graph`
    operation. The behavior is undefined if any of the operands of the
    `tf_executor.fetch` is dead.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/tests/executor_canonicalize.mlir

        }
        tf_executor.fetch %0 : !tf_executor.control
      }
      func.return
    }
    
    // CHECK-NEXT: return
    
    
    // Test empty island with no operands and no data result user is removed.
    // Control result users should also have their respective operands removed.
    // CHECK-LABEL: func @empty_island_no_operand_no_data_result
    func.func @empty_island_no_operand_no_data_result() {
      tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 04 14:07:37 UTC 2022
    - 13.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/converter_gen.cc

           << "const std::vector<int32_t>& operands,"
           << "const std::vector<int32_t>& results,"
           << (has_intermediates ? "const std::vector<int32_t>& intermediate_index,"
                                 : "")
           << "flatbuffers::FlatBufferBuilder *fbb) {\n";
    
        // Inputs & outputs
        os << "  auto inputs = fbb->CreateVector(operands);\n"
              "  auto outputs = fbb->CreateVector(results);\n\n";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top