Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 142 for GetOperands (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          }
    
          rewriter.setInsertionPoint(cloned_func.getBody().front().getTerminator());
          rewriter.create<TF::_XlaSendFromHostOp>(
              func.getLoc(),
              cloned_func.getBody().front().getTerminator()->getOperands(),
              /*dynamic_key=*/dynamic_key, op.getRecvKeyAttr(),
              /*device_ordinal=*/rewriter.getI64IntegerAttr(0),
              rewriter.getStringAttr("TPU"));
        }
    
    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. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

    // The current implementation is based on the number of operands.
    static bool PreferResultScale(Operation* op) {
      int float_operands = 0;
      for (auto operand : op->getOperands()) {
        if (auto operand_type = dyn_cast<ShapedType>(operand.getType())) {
          if (isa<FloatType>(operand_type.getElementType())) {
            if (++float_operands > 1) return true;
          }
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

      //
      // Sharding configurations are added to the tf_device.ClusterFunc as an
      // attribute and the function as an argument attribute.
      for (auto operand_and_arg :
           llvm::zip(cluster_func.getOperands(), function_block.getArguments())) {
        Value operand = std::get<0>(operand_and_arg);
        BlockArgument arg = std::get<1>(operand_and_arg);
    
        if (auto operand_sharding = GetXlaShardingFromOperand(operand)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      if (num_cores_per_replica != 1) return success();
    
      llvm::SetVector<Value> bcasts;
      cluster->walk([&](Operation* op) {
        if (op == cluster) return WalkResult::advance();
        for (auto operand : op->getOperands()) {
          Operation* scope = operand.getParentBlock()->getParentOp();
          if (scope->isProperAncestor(replicate)) {
            bcasts.insert(operand);
          }
        }
        return WalkResult::advance();
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

        auto walk_res = func_op.walk([&](Operation* op) {
          if (auto while_op = dyn_cast<WhileOp>(op)) {
            if (failed(propagate_operands_to_callee_arguments(
                    while_op, while_op.getOperands(),
                    {while_op.body_function(), while_op.cond_function()},
                    func_res)))
              return WalkResult::interrupt();
          } else if (auto if_op = dyn_cast<IfOp>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

      std::string custom_option_buffer;
      CreateFlexOpCustomOptions(op_name, node_def_str, custom_option_buffer);
      auto flex_op = builder.create<TFL::CustomOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(), flex_op_name,
          CustomOptionForFlexOp(&builder, custom_option_buffer));
      op->replaceAllUsesWith(flex_op);
      op->erase();
      return true;
    }
    
    // Sets the "no_fallback" attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

        : region_(&region) {
      if (region.empty()) return;
    
      assert(llvm::hasSingleElement(region.getBlocks()));
    
      auto results = region.front().getTerminator()->getOperands();
      if (results.empty()) return;
    
      backtracked_values_.reserve(results.size());
      for (auto result : results)
        backtracked_values_.push_back(backtrack_analysis.BacktrackValue(result));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

      // UniformQuantized Ops are considered legal if its qint operands and
      // results are connected to TF CastOp.
      return op && llvm::all_of(op->getResults(), IsQintValueQintToIntCast) &&
             llvm::all_of(op->getOperands(), IsQintValueDefinedByIntToQintCast);
    }
    
    bool IsCastOpLegal(TF::CastOp cast_op) {
      // Consider qint <-> qint casts illegal.
      if (IsIllegalType(cast_op.getSrcT()) && IsIllegalType(cast_op.getDstT())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

        func_metadata.original_name = func_op.getName();
        func_metadata.insertion_point = ++Block::iterator(func_op);
        func_metadata.ops.push_back(op);
    
        for (Value value : op->getOperands()) {
          std::string value_device = "";
    
          // If the value is defined as an argument of the func_op, adds it to
          // the argument list of the function that uses this op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

          }
    
          write_op.erase();
        }
      }
    
      const int64_t num_results_before = function.getNumResults();
      auto return_operands = llvm::to_vector<4>(return_op.getOperands());
      auto result_types = llvm::to_vector<4>(return_op.getOperandTypes());
      llvm::SmallVector<std::pair<int64_t, llvm::StringRef>, 4>
          output_only_resources;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top