Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 142 for GetOperands (0.18 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

        return mlir::isa<mlir::TF::StringType>(type.getElementType());
      });
      return has_string;
    }
    
    bool HasStringOperand(Operation& op) {
      for (auto operand : op.getOperands()) {
        auto operand_type = getElementTypeOrSelf(operand);
        if (IsStringType(operand_type)) return true;
      }
      return false;
    }
    
    bool HasStringResult(Operation& op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/cluster_util.cc

      // dependency from the oprands of the op to the current cluster.
      llvm::SetVector<Operation*> ops_depend_on_cluster =
          GetAllOpsDependOnCluster(c, op_to_cluster_map);
      return llvm::none_of(to_merge->getOperands(), [&](Value value) {
        Operation* defining_op = value.getDefiningOp();
        return defining_op && ops_depend_on_cluster.contains(defining_op);
      });
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 28 00:32:55 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

                  1, mlir::stablehlo::PrecisionAttr::get(
                         ctx_.get(), mlir::stablehlo::Precision::DEFAULT)))),
      };
      const SmallVector<Value> operands(dot_general_op->getOperands());
      const SmallVector<Value> results(dot_general_op->getResults());
      Operation* lifted_op =
          LiftAsFunctionCall(builder_, dot_general_op->getLoc(),
                             FunctionCallOpType::TFXlaCallModuleOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (!point.isParent() && point == (*this)->getRegion(0)) {
        // 'cond' branches to the body or returns.
        Operation *yield = getCond().front().getTerminator();
        if (yield->getOperands().size() ==
            1 + this->getOperation()->getOperands().size()) {
          regions.push_back(
              RegionSuccessor(&getBody(), getBody().front().getArguments()));
          regions.push_back(getResults());
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

        auto return_op = cast<mlir::stablehlo::ReturnOp>(block.getTerminator());
        if (return_op.getNumOperands() != 1) return false;
    
        auto max_op = dyn_cast_or_null<MaxOp>(
            return_op.getOperands().front().getDefiningOp());
        if (!max_op) return false;
    
        return (max_op.getLhs() == block.getArgument(0)) &&
               (max_op.getRhs() == block.getArgument(1));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          // inputs.
          SmallVector<Value, 4> inputs;
          inputs.reserve(candidate_op->getNumOperands());
          for (auto operand : candidate_op->getOperands()) {
            Type operand_type = operand.getType();
            if (mlir::isa<NoneType>(operand_type)) {
              inputs.push_back(operand);
              continue;
            }
    
            auto ele_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      llvm::SetVector<Operation*> new_ops;
    
      while (!ops_to_process.empty()) {
        for (Operation* op : ops_to_process) {
          if (predecessors) {
            for (Value operand : op->getOperands()) {
              // Stop at the block boundary.
              if (mlir::isa<BlockArgument>(operand)) continue;
    
              Operation* predecessor = operand.getDefiningOp();
              if (!operations->contains(predecessor) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    // type if provided. If there is no user or user of type, return nullptr.
    template <typename T = Operation*>
    Operation* FindOperandOfType(Operation* op) {
      for (Value operand_value : op->getOperands()) {
        if (isa<T>(operand_value.getDefiningOp())) {
          return operand_value.getDefiningOp();
        }
      }
      return nullptr;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/utils.h

    using mlir::Operation;
    using mlir::ShapedType;
    using mlir::Value;
    
    // Returns true if all tensor value in `values` has static shape and same shape.
    inline bool OpHasSameStaticShapes(Operation* op) {
      auto values = op->getOperands();
      int operand_num = 0;
      ArrayRef<int64_t> shape;
      for (Value value : values) {
        auto shaped_type = value.getType().dyn_cast<ShapedType>();
        if (!shaped_type || !shaped_type.hasStaticShape()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

                 llvm::Twine(calib_opts_.calibration_method()))
                    .str());
          }
        } else {
          // Quantize output of fully quantizable composite functions.
          for (Value input : op->getOperands()) {
            auto defining_op = input.getDefiningOp();
            std::optional<StringRef> composite_function_name =
                GetCompsiteFunctionName(defining_op);
            if (!composite_function_name.has_value()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top