Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetOwner (0.18 sec)

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

    // operation of which use is an operand allows for shape refinement without
    // a cast.
    bool NeedsCastBack(OpOperand& use, Dialect* tf_dialect) {
      return use.getOwner()->getDialect() != tf_dialect &&
             !IsSupportedNonTFOp(use.getOwner());
    }
    
    TensorType CreateTensorType(std::optional<llvm::ArrayRef<int64_t>> shape,
                                Type element_type) {
      if (shape.has_value())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      // This is v1 ref variable semantics in the TFLite runtime.
      bool is_variable = false;
      for (auto& use : value.getUses()) {
        is_variable = IsStatefulOperand(use.getOwner(), use.getOperandNumber());
        if (is_variable) {
          break;
        }
      }
      // The value is used as a variable if produced by an op with "tfl.is_variable"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    bool HasOneUseOrUsedByOnlyBinaryOps(Value out_value) {
      if (out_value.hasOneUse()) {
        return true;
      }
    
      for (auto &use : out_value.getUses()) {
        mlir::Operation *owner = use.getOwner();
        if (!llvm::isa<mlir::TFL::AddOp>(owner) &&
            !llvm::isa<mlir::TFL::SubOp>(owner) &&
            !llvm::isa<mlir::TFL::DivOp>(owner) &&
            !llvm::isa<mlir::TFL::MulOp>(owner)) {
          return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    Value LookThroughIdentity(Value result) {
      while (isa_and_nonnull<IdentityOp, IdentityNOp>(result.getDefiningOp())) {
        auto op_result = result.cast<OpResult>();
        result = op_result.getOwner()->getOperand(op_result.getResultNumber());
      }
      return result;
    }
    
    bool IsWithinInt32Range(int64_t value) {
      return (value >= std::numeric_limits<int32_t>::min() &&
    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/tensorflow/translate/import_model.cc

        // Erase control outputs from feed.
        auto control_uses = island->getResult(1).getUses();
        for (auto& control_use : llvm::make_early_inc_range(control_uses))
          control_use.getOwner()->eraseOperand(control_use.getOperandNumber());
    
        if (!arg_node.node->requested_device().empty())
          arg_attrs[i].set("tf.device", builder_.getStringAttr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top