- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for hasOneUse (0.26 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/optimize.td
def DefinedByConv2D : Constraint<CPred<"llvm::isa_and_nonnull<mlir::TF::Conv2DOp>($0.getDefiningOp())">>; // Checks if the value has only one user. def HasOneUse : Constraint<CPred<"$0.hasOneUse()">>; // If we see a Conv2D op followed by Mul, then multiply the filter // with the value in Mul. def FuseMulAndConv2D : Pat<(TF_MulOp:$mul (TF_Conv2DOp:$conv $input,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 22 07:31:23 UTC 2023 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td
$input, (MultiplyFakeQuantValue $weight, (MakeOneDimValueBroadcastable $mul_rhs, $weight))), (MultiplyFakeQuantValue $bias, $mul_rhs), $data_format), [(HasOneUse $conv_out), (HasOneUse $bias_add), (HasRankOf<1> $mul_rhs_value), (HasStaticShapeConstraint $weight), (CanBeSymmetricallyQuantized $weight), (CanBeSymmetricallyQuantized $bias),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:24:59 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc
device_return->getParentRegion()->getRegionNumber()); if (operand_idx >= execute_results.size()) return nullptr; auto result_from_use = execute_results[operand_idx]; if (!result_from_use.hasOneUse()) return nullptr; device_return = result_from_use.use_begin()->getOwner(); if (!device_return) return nullptr; } } else { LLVM_DEBUG(llvm::dbgs()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 04:14:26 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/gpu_fusion.cc
// For the second pattern, there is not good way in the framework to handle the // commutativity of the AddV2: we want the FusedBatchNormV3 on any side. // Also we need some native calls to handle the "hasOneUse" aspects and the // optional extra operands for the AddV2 case. struct ReluToFusedBatchNorm : public OpRewritePattern<ReluOp> { using OpRewritePattern<ReluOp>::OpRewritePattern;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc
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(); SmallVector<int64_t> new_padding_low =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc
Type arg_type = arg.getType(); if (auto quant_type = arg_type.cast<TensorType>() .getElementType() .dyn_cast<quant::QuantizedType>()) { if (arg.hasOneUse() && llvm::isa<TFR::CastOp>(*arg.user_begin())) { arg.setType( arg_type.cast<TensorType>().clone(quant_type.getStorageType())); } else { std::string error_message;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td
// Checks if the boolean value is false. def IsFalseBoolAttr : AttrConstraint< CPred<"!$_self.cast<BoolAttr>().getValue()">>; // Checks if the value has only one user. def HasOneUse : Constraint<CPred<"$0.hasOneUse()">>; // Gets the type of a value. def GetValueType : NativeCodeCall<"$0.getType()">; // Checks if the value has the type of int8. def IsInt8ElementType : Constraint<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 04:55:44 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc
assert(user->use_empty()); user->erase(); } } } for (auto operand : cluster.getOperands()) { mlir::Operation* def = operand.getDefiningOp(); if (operand.hasOneUse() && llvm::isa_and_nonnull<mlir::TF::TPUPartitionedInputV2Op>(def)) { operand.dropAllUses(); def->erase(); } } if (!old_parallel_execute->use_empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 13 03:57:18 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc
if (!cond_block_argument.use_empty()) return false; // Don't prune if `body_yield_operand` has more than one use (that would mean // it feeds into another op apart from `Yield`). if (!body_yield_operand.hasOneUse()) return false; // Don't prune if any other result of the candidate op is used. for (Value candidate_result : candidate_op->getResults()) { if (candidate_result == body_yield_operand) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc
// if there is only one. Operation* GetUserIfOnlyOne(Operation* op) { if (op->getNumResults() != 1) return nullptr; auto result = op->getResult(0); if (!result.hasOneUse()) return nullptr; return (*result.getUses().begin()).getOwner(); } // Gets operation providing value for the given operand of given operation // if the given operation is the only user.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 9.6K bytes - Viewed (0)