- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for no_side_effect (0.24 sec)
-
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.h
// custom op is quantized only for storage and dequantized at runtime. // 'no_side_effect' is used to determine whether the op can be pruned if // considered as trivially dead. struct CustomOpInfo { std::vector<std::int32_t> quantizable_input_indices; bool is_weight_only = false; bool no_side_effect = true; }; using BuiltinOperatorSet = absl::flat_hash_set<tflite::BuiltinOperator>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.cc
entry.second.quantizable_input_indices; quant_specs.custom_map[entry.first].is_weight_only = entry.second.is_weight_only; quant_specs.custom_map[entry.first].no_side_effect = entry.second.no_side_effect; } if (quant_specs.inference_type == tensorflow::DT_INT8) quant_specs.inference_type = tensorflow::DT_QINT8; if (!(quant_specs.inference_type == tensorflow::DT_HALF ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc
custom_op_map[node_name].is_weight_only = GetBooleanSpecs(node_specification); break; case CustomOpUpdateOptions::kNoSideEffect: custom_op_map[node_name].no_side_effect = GetBooleanSpecs(node_specification); break; } } } bool ParseInputNodeQuantSpecs(const absl::string_view node_names,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.h
namespace quant { // Stores information about how to quantize a user-specified custom operation. struct CustomOpInfo { std::vector<std::int32_t> quantizable_input_indices; bool is_weight_only = false; bool no_side_effect = true; }; using CustomOpMap = std::unordered_map<std::string, CustomOpInfo>; enum CustomOpUpdateOptions { kInputIndices, kWeightOnly, kNoSideEffect }; enum class QDQConversionMode { kQDQNone, kQDQStatic, kQDQDynamic };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 10:16:19 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
} // Remove if the custom op is in the provided map and is NoSideEffect. auto custom_op = llvm::isa<CustomOp>(op); if (custom_op) { auto q = llvm::cast<CustomOp>(op); std::string op_name = q.getCustomCode().str(); if ((custom_op_map.find(op_name) == custom_op_map.end()) || !custom_op_map.find(op_name)->second.no_side_effect) return failure(); } rewriter.eraseOp(op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_side_effect.mlir
Tres Popp <******@****.***> 1648100645 -0700
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 24 05:47:26 UTC 2022 - 536 bytes - Viewed (0) -
pkg/apis/admissionregistration/validation/validation_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 147.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/post-quantize-dynamic-range.mlir
// NoSideEffect: %[[q_w:.*]] = "tfl.pseudo_qconst"() <{qtype = tensor<1024x1x1x1x!quant.uniform<i8<-127:127>:f32, 1.000000e+00>> // NoSideEffect: %[[custom:.*]] = "tfl.custom"(%arg0, %[[q_w:.*]]) <{custom_code = "CustomTestOp", custom_option = #tfl<const_bytes : "0x">} // NoSideEffect: return %[[custom:.*]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/passes.td
"Enable canonicalization during optimization pass.">, Option<"enable_custom_op_no_side_effect_", "enable-no-side-effect", "std::string", "", "Specifies which custom ops are NoSideEffect.">, ]; } def PostQuantizeRemoveQDQPass : Pass<"tfl-post-quantize-remove-qdq", "mlir::func::FuncOp"> { let summary = "Remove qdq from input and output nodes after quantization.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 22.6K bytes - Viewed (0)