- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for FindUserOfType (0.31 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
auto reshape_op = FindUserOfType<ReshapeOp>(get_dimension_size_op); if (reshape_op == nullptr) return nullptr; auto concatenate_op = FindUserOfType<ConcatenateOp>(reshape_op); if (concatenate_op == nullptr) return nullptr; auto dynamic_broadcast_in_dim_op = FindUserOfType<DynamicBroadcastInDimOp>(concatenate_op); if (dynamic_broadcast_in_dim_op == nullptr) return nullptr;
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/lite/stablehlo/transforms/fuse_convolution_pass.cc
if (is_dynamic_broadcast) { auto conv_uses = (*conv_op.getODSResults(0).begin()).getUses(); if (std::distance(conv_uses.begin(), conv_uses.end()) != 2 || quant::FindUserOfType<shape::ShapeOfOp>(conv_op) == nullptr || quant::FindUserOfType<mhlo::MulOp>(conv_op) == nullptr) { return rewriter.notifyMatchFailure(mul_op, [&](::mlir::Diagnostic &diag) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 22:21:19 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc
ASSERT_THAT(dot_general_op, NotNull()); EXPECT_THAT(FindUserOfType<AddOp>(dot_general_op), NotNull()); EXPECT_THAT(FindUserOfType<SubtractOp>(dot_general_op), NotNull()); EXPECT_THAT(FindUserOfType<>(dot_general_op), NotNull()); EXPECT_THAT(FindUserOfType<ConvolutionOp>(dot_general_op), IsNull()); } TEST_F(AttrsAndConstraintsTest, FindOperandOfDifferentTypes) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 17:10:32 UTC 2024 - 22.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
Operation* uniform_quantize_op; if (!has_i32_output) return op->getResult(0).getType(); if (fuse_bias_constant) { Operation* add_op = FindUserOfType<stablehlo::AddOp>(op); uniform_quantize_op = FindUserOfType<TFL::QuantizeOp>(add_op); } else { uniform_quantize_op = FindUserOfType<TFL::QuantizeOp>(op); } // StableHLO Quantizer outputs an i32 type. Rewrite to i8 type result // to meet TFLite op requirement.
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/quantization/common/attrs_and_constraints.h
} // Returns the first user of the given operation, optionally of the given // 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; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0)