Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 521 for operands_ (0.14 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

      // Collect operands for the new merged island.
      island_operands_and_results.operands.clear();
      for (IslandOp island : merged_island.islands)
        island_operands_and_results.operands.insert(island.operand_begin(),
                                                    island.operand_end());
      for (IslandOp island : merged_island.islands)
        island_operands_and_results.operands.remove(island.getControl());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      metadata.ParseFromString(std::string(metadata_str.getValue()));
      int64_t num_replicas = replicate.getN();
      // Find the formattable operands of `execute`, which must be mirrored
      // variables (arguments of `replicate`), and must be pass-throughs from while
      // operands.
      for (const auto& mirrored_index : mirrored_variable_indices_attr) {
        int64_t replicate_arg = mlir::cast<IntegerAttr>(mirrored_index).getInt();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

    }
    
    // If operand is TF const op, create MHLO constant op from the contents.
    // Otherwise convert the operand to the desired type.
    FailureOr<Value> CreateConstantOrConvertOp(Operation *op, Value operand,
                                               TensorType new_operand_type,
                                               PatternRewriter &rewriter) {
      // Check whether the rhs operand has constant op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

      for (const auto& operand :
           llvm::enumerate(signature.getFunctionType().getInputs())) {
        // If the index is larger than the operand number of the call_op, the
        // default value of the operand needs to be used.
        if (operand.index() >= call_op.getNumOperands()) {
          auto attr_name = signature.getArgAttrOfType<StringAttr>(
              operand.index(), kAttrArgumentNameAttr);
          auto attr_value =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc

        if (!candidate_result.use_empty()) return false;
      }
    
      // Now we know that it is safe to erase the candidate op along with `result`
      // and the corresponding operand. Here we only erase the op and replace its
      // result usage with the corresponding block argument, the result and operand
      // will be removed later in a canonicalization pattern.
      VLOG(4) << "Pruning following op:\n" << debugString(*candidate_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 16 01:49:07 UTC 2022
    - 5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

    void UpdateStatesAndReplaceStablehloOps(
        const SetVector<Value>& operands, const SetVector<Value>& defined_values,
        const LiveOuts& liveouts, ModuleOp module_op,
        const SetVector<Operation*>& reverse_subgraph, const int stablehlo_func_id,
        func::FuncOp main_func, const bool is_last_subgraph = false) {
      SetVector<Value> inputs = operands;
      for (Value defined_value : defined_values) {
        inputs.remove(defined_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. src/fmt/doc.go

    will print 23.
    
    Except when printed using the verbs %T and %p, special
    formatting considerations apply for operands that implement
    certain interfaces. In order of application:
    
    1. If the operand is a [reflect.Value], the operand is replaced by the
    concrete value that it holds, and printing continues with the next rule.
    
    2. If an operand implements the [Formatter] interface, it will
    be invoked. In this case the interpretation of verbs and flags is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. src/math/big/doc.go

    result is the receiver (usually named z in that case; see below); if it
    is one of the operands x or y it may be safely overwritten (and its memory
    reused).
    
    Arithmetic expressions are typically written as a sequence of individual
    method calls, with each call corresponding to an operation. The receiver
    denotes the result and the method arguments are the operation's operands.
    For instance, given three *Int values a, b and c, the invocation
    
    	c.Add(a, b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top