Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 178 for getDefiningOp (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

      resource_infos_[resource].potentially_written = true;
      auto* operation = resource.getDefiningOp();
      if (operation && isa<TF::VarHandleOp>(operation)) {
        mutable_variables_.insert(GetResourceKey(operation));
      }
    }
    
    bool ResourceAnalyzer::IsPotentiallyWritten(Value resource) const {
      assert(IsResource(resource));
      auto* operation = resource.getDefiningOp();
      if (operation && isa<TF::VarHandleOp>(operation))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc

        SmallVector<Value, 1> new_values;
        bool should_rewrite = false;
        for (auto operand : op.getArgs()) {
          if (auto corert_const_dense_tensor_op =
                  operand.getDefiningOp<corert::ConstDenseTensorOp>()) {
            new_values.push_back(
                rewriter.create<fallback_async::ConstDenseTensorOp>(
                    op.getLoc(), rewriter.getType<fallback::TFTensorType>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

        Value assigned_value_operand = assign_variable_op.getOperand(1);
    
        if (auto var_handle_op =
                dyn_cast<TF::VarHandleOp>(resource_operand.getDefiningOp());
            var_handle_op &&
            isa<TF::ConstOp>(assigned_value_operand.getDefiningOp())) {
          var_handle_ops.emplace_back(var_handle_op);
        }
      }
    
      return var_handle_ops;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

        Value pad_input = pad_op.getOperand();
        RankedTensorType pad_type = pad_op.getType().cast<RankedTensorType>();
    
        auto transpose_op = pad_input.getDefiningOp<stablehlo::TransposeOp>();
        if (!transpose_op || !transpose_op->hasOneUse()) return failure();
        Value transpose_input = transpose_op.getOperand();
    
        ArrayRef<int64_t> transpose_perm = transpose_op.getPermutation();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

      LogicalResult match(mlir::stablehlo::TransposeOp op) const override {
        Value operand = op.getOperand();
        auto const_op =
            dyn_cast_or_null<mlir::stablehlo::ConstantOp>(operand.getDefiningOp());
        if (!const_op) return failure();
    
        // Only support float tensors.
        auto tensor_type = mlir::dyn_cast_or_null<TensorType>(const_op.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

              if (mlir::isa<BlockArgument>(operand)) continue;
    
              Operation* predecessor = operand.getDefiningOp();
              if (!operations->contains(predecessor) &&
                  !ops_to_avoid.contains(predecessor)) {
                new_ops.insert(operand.getDefiningOp());
                operations->insert(operand.getDefiningOp());
              }
            }
          }
          if (successors) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

    def FuseAffineOpAndMul : Pat<
      (TF_MulOp
        (SupportedAffineOpMatcher $conv_out, $input, $weight),
        (TF_ConstOp:$mul_rhs IsFloatElementsAttr:$mul_rhs_value)),
      (CloneOpWithReplacedOperands
            (GetDefiningOp $conv_out),
            $input,
            (MultiplyFakeQuantValue $weight,
              (MakeOneDimValueBroadcastable $mul_rhs, $weight))),
      [(HasOneUse $conv_out),
       (HasRankOf<1> $mul_rhs_value),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

        auto var_handle_op =
            dyn_cast<TF::VarHandleOp>(resource_operand.getDefiningOp());
        if (!var_handle_op) continue;
    
        Value assigned_value_operand = assign_variable_op.getOperand(1);
        auto const_op =
            dyn_cast<TF::ConstOp>(assigned_value_operand.getDefiningOp());
        if (!const_op) continue;
    
        var_handle_ops.emplace_back(var_handle_op);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

      }
    
      // Check if the ConvOp's input is defined by `Expand` op, and the output used
      // by `Squeeze` op.
      Operation* producer_op = op.getOperand(0).getDefiningOp();
      if (!producer_op || producer_op->getNumResults() != 1) {
        return rewriter.notifyMatchFailure(
            op, "op doesn't have a producer node that has a single result");
      }
      if (!producer_op->hasOneUse() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

                  preceding_op)) {
            if (auto q_op = llvm::dyn_cast_or_null<quantfork::QuantizeCastOp>(
                    dq_op.getArg().getDefiningOp())) {
              Operation* q_op_input = q_op.getArg().getDefiningOp();
              is_weight_constant =
                  q_op_input && q_op_input->hasTrait<OpTrait::ConstantLike>();
            }
          }
    
          if (!is_weight_constant) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top