- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 124 for getUsers (0.13 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc
return HasValidWeightOnlyPtqMethod(method.weight_only_ptq(), rank); } void rewrite(Operation* op, PatternRewriter& rewriter) const override { Operation* quantizable_op = *op->getUsers().begin(); DenseFPElementsAttr attr; matchPattern(op->getResult(0), m_Constant(&attr)); Method method = GetQuantizationMethodOrDefault(quantizable_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc
// the operands. for (Value result : parallel_execute.getExecuteOutputs()) { if (!result.hasOneUse()) continue; auto assign_var = llvm::dyn_cast<TF::AssignVariableOp>(*result.getUsers().begin()); if (!assign_var || assign_var.getValue() != result) continue; auto partitioned_input = llvm::dyn_cast_or_null<TF::TPUPartitionedInputV2Op>( assign_var.getResource().getDefiningOp());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td
CPred<"quant::CastQuantizedTypeAttrFromExpressedType($_builder, $0, $1.getType(), " # i # ")">>; class UsedBy<string op> : Constraint< CPred<"llvm::isa<mlir::TFL::" # op # "Op>(*$0.getUsers().begin())">>; // When the op is passing-through, the output types of the quantized ops need // to be updated as well. Since the quantize op manages its own type by the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc
if (!op->hasAttr(kQuantTraitAttrName) || op->getNumResults() != 1) { return failure(); } Value result = op->getResult(0); for (auto user : result.getUsers()) { if (dyn_cast_or_null<TF::DumpTensorOp>(user)) return failure(); } const FlatSymbolRefAttr f_attr = GetFuncAttr(op); if (!f_attr.getValue().starts_with(kCompositeFuncPrefix)) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
// Match only when there is one user of the dequantize op. if (!op.getResult().hasOneUse()) { return failure(); } for (Operation* op_with_region : op.getResult().getUsers()) { // Among the ops with regions, only reduce_window op is supported for now. if (!isa<mlir::stablehlo::ReduceWindowOp>(op_with_region)) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
// `dequantize_op`'s users. FailureOr<SmallVector<Operation*>> CollectCandidateOps( DequantizeOpT dequantize_op) const { auto users = dequantize_op->getResult(0).getUsers(); return SmallVector<Operation*>(users.begin(), users.end()); } // Collects all candidate ops for quantization, which is the operand of
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
auto result = execute_output.value(); if (!result.hasOneUse()) { if (VLOG_IS_ON(2)) { bool any_user_is_assign = false; for (auto result_user : result.getUsers()) { any_user_is_assign |= llvm::isa<TF::AssignVariableOp>(result_user); } if (any_user_is_assign) { VLOG(2) << "TPUMergeVariablesWithExecutePass: Skipping output "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/quantization_context.cc
auto ele = op->getResult(res).getType().cast<ShapedType>().getElementType(); if (ele.isa<FloatType>() && SetResultParams(op, res, params)) { auto users = op->getResult(res).getUsers(); *changed |= !users.empty(); new_items->append(users.begin(), users.end()); } } return success(); } int QuantizeContext::StatesManager::InitializeState(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 13.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td
def IsRank4Tensor : Type<HasAnyRankOfPred<[4]>, "Rank 4 tensor">; // Checks if all the users is ReadVariableOp. def HasOnlyReadVariableOpUsers : Constraint< CPred<"llvm::all_of($0.getUsers(), [](mlir::OpOperand op) { " "return llvm::isa<mlir::TF::ReadVariableOp>(op.getOwner()); })">>; def CopyAttrs: NativeCodeCallVoid<"CopyDeviceAndUnderscoredAttributesAdaptor($0, $1)">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 06 18:42:28 UTC 2023 - 17K bytes - Viewed (0) -
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* FindUserOfType(Operation* op) { for (Operation* user : op->getUsers()) { if (isa<T>(user)) { return user; } } return nullptr; } // Returns the first user of the given operation, optionally of the given
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0)