- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ContainsConvOrDot (0.23 sec)
-
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc
const bool is_per_axis_quantizable = IsDotGeneralFullyConnected(dot_general_op).value(); if (!is_per_axis_quantizable) return std::nullopt; return filter_rank - 1; } bool ContainsConvOrDot(StringRef str) { return str.contains("_conv") || str.contains("_dot_general"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc
ASSERT_THAT(main_fn, NotNull()); auto call_op = *main_fn.getOps<TF::XlaCallModuleOp>().begin(); const StringRef function_name = GetEntryFunctionName(call_op); EXPECT_TRUE(ContainsConvOrDot(function_name)); } TEST_F(AttrsAndConstraintsTest, ContainsConvOrDotFalse) { OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleXlaCallModuleNoEntryNoQuantTrait); ASSERT_TRUE(module_op);
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/quantization/common/attrs_and_constraints.h
std::optional<int64_t> GetDotGeneralQuantizationDim( ::mlir::stablehlo::DotGeneralOp dot_general_op); // Checks if a `StringRef` contains 'conv' or 'dot_general'. bool ContainsConvOrDot(StringRef str); } // namespace mlir::quant
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
if (auto call_op = dyn_cast<TF::XlaCallModuleOp>(op)) { StringRef entry_function_name = GetEntryFunctionName(call_op); absl::StatusOr<Method> quantization_method = GetQuantizationMethod(call_op); return ContainsConvOrDot(entry_function_name) && quantization_method.ok() && quantization_method->has_weight_only_ptq(); } return false; } SmallVector<func::FuncOp> GetSortedFunctions(ModuleOp module_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0)