- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 343 for _lifted (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
return func; func::FuncOp cloned = func.clone(); cloned.setPrivate(); cloned.setName( StringAttr::get(func.getContext(), func.getName().str() + "_lifted")); SymbolTable(module).insert(cloned); return cloned; } // Eliminates unused results for If/Case operations. Also patches up the // branch functions to (a) drop the ununsed return values, and (b) as a result
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc
str.pop_back(); } } // Lifts quantizable units as separate functions, thereby identifying the // boundaries of quantizable subgraphs. `QuantizationSpecs` influences how // quantizable units are lifted. // // FileCheck test cases using various `QuantizationSpecs` can be seen at // `TestLiftQuantizableSpotsAsFunctionsWithQuantizationSpecsPass`. class LiftQuantizableSpotsAsFunctionsPass
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/tests/lift_hashtable_ops_as_args.mlir
return } // Check that HashTable op in the initilizer is not lifted. // CHECK: func.func @init_all_tables() // CHECK: %[[OUT_0:.*]] = "tf.HashTableV2"() // CHECK: "tf.LookupTableImportV2"(%[[OUT_0]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 05:41:44 UTC 2024 - 13.5K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_util.h
// lifted out of If/While/function node. Attribute value will always be boolean // value "true". extern const char kXlaIsLiftedArgAttrName[]; // Attribute indicating that this node is a Placeholder node for an _Arg node // lifted out of If/While/function node. Attribute value will be a string, which // is the outside compilation cluster name sending the lifted arg node to host.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h
inline constexpr StringRef kFusedFunctionAttr = "tf_quant.composite_function"; // The keyword to detect if this is a `NullAttribute`. inline constexpr StringRef kNullAttributeValue = "N/A"; // Prefixes attached to lifted functions. constexpr StringRef kQuantizedFuncPrefix = "quantized_"; constexpr StringRef kCompositeFuncPrefix = "composite_"; // The attribute will be used for TF::XlaCallModuleOp to restore the original
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/jit/extract_outside_compilation_pass.cc
// Cheap check to tell whether FunctionDef contains a lifted argument. bool HasLiftedArgs(const FunctionDef& function_def) { return absl::c_any_of(function_def.node_def(), [](const NodeDef& node_def) { return (node_def.op() == "Placeholder" && node_def.attr().find(kXlaLiftedArgOutsideCompilationAttrName) != node_def.attr().end()); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 104.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto
// here will be quantized with best effort. map<int32, QuantizedType> input_quantized_types = 1; } // Represents a matching method that matches quantizable units by lifted // functions' names. message FunctionNameMatcherSpec { // Regular expression to match lifted functions' names. Underlying regex // engine uses re2, which accepts a subset of PCRE. See // https://github.com/google/re2/wiki/Syntax for details. string regex = 1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 14.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc
namespace mlir::quant::stablehlo { namespace { using ::mlir::stablehlo::DotGeneralOp; using ::stablehlo::quantization::Method; using ::stablehlo::quantization::StaticRangePtq; // Whether it represents a lifted function (i.e. `op` is the corresponding // `XlaCallModuleOp`) that is explicitly marked `NoQuantization`. bool IsDenylistedLiftedFunction(Operation* op) { if (auto xla_call_module_op = dyn_cast_or_null<TF::XlaCallModuleOp>(op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
Value hoisted_read; // the type of the data held by the resource. Type data_type; // For written resources, the result # of the lifted op which will hold the // value of the resource. This result will be used to generates writes to // the resource after the lifted op. int result_index; // Attributes on the read operation. DictionaryAttr read_attrs; // Attributes on the write operation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/components/post_calibration_component.mlir
// RUN: stablehlo-quant-opt %s -stablehlo-test-post-calibration-component='unpack-quantized-types=false' \ // RUN: -split-input-file | FileCheck %s --check-prefix=CHECK-NO-UNPACK // Tests that a simple dot_general (lifted as a function) with CustomAggregators // around it is quantized. The resulting graph has quantized types unpacked into // int ops. func.func @main(%arg0: tensor<1x1024xf32>) -> tensor<1x3xf32> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 6.7K bytes - Viewed (0)