- Sort Score
- Result 10 results
- Languages All
Results 51 - 56 of 56 for hasOneUse (0.12 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
//===----------------------------------------------------------------------===// LogicalResult NextIterationSourceOp::verify() { NextIterationSourceOp source = *this; Value token = source.getToken(); if (!token.hasOneUse()) return source.emitOpError() << "expects a single user for produced token"; if (!isa<NextIterationSinkOp>(*token.user_begin())) return source.emitOpError() << "token should be consumed by a sink op";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
template <typename T> std::tuple<T, llvm::SmallVector<mlir::TF::IdentityOp, 4>> GetSingleUserOfType( OpResult result) { llvm::SmallVector<mlir::TF::IdentityOp, 4> identity_ops; do { Operation* user = result.hasOneUse() ? *result.getUsers().begin() : nullptr; if (auto t = llvm::dyn_cast_or_null<T>(user)) { return std::make_tuple(t, identity_ops); } else if (auto identity =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
if (!IsSameScaleOp(user, op_quant_scale_spec_getter) || PreferResultScale(user)) { continue; } for (Value res : user->getResults()) { if (!res.hasOneUse()) { continue; } if (auto next_stats = dyn_cast<quantfork::StatisticsOp>(*res.getUsers().begin())) { // quantization parameters can be propagated to next_stats
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
fuse_bias_constant); } return output_type; } static bool HasOneUseByQuantizeOp(Operation* op) { return op->hasOneUse() && (FindUserOfType<stablehlo::UniformQuantizeOp>(op) != nullptr || FindUserOfType<TFL::QuantizeOp>(op) != nullptr); } }; // Rewrites `stablehlo.convolution` into fused `tfl.conv_2d`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
tensor_index_map_[subgraph_index][tensor_name] = tensors.size(); std::optional<BufferOffset<tflite::QuantizationParameters>> quant_parameters; if (value.hasOneUse()) { auto stats_op = llvm::dyn_cast<mlir::quantfork::StatisticsOp>(*value.user_begin()); if (stats_op) { quant_parameters = GetQuantizationForQuantStatsOpOutput(stats_op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
using OpRewritePattern<ReshapeOp>::OpRewritePattern; LogicalResult matchAndRewrite(ReshapeOp reshape, PatternRewriter& rewriter) const override { if (!reshape.getShape().hasOneUse()) return failure(); DenseIntElementsAttr shape; if (!matchPattern(reshape.getShape(), m_Constant(&shape))) { return failure(); } // It is already a 1-D constant, no change.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0)