- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 445 for FuncOp (0.13 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_composite_functions.cc
// Change this to user-given bit width once we have custom configuration. options.bit_width_ = 8; // Insert quantization parameters for weights for ops with `weight_only_ptq` // attribute. pm.addNestedPass<func::FuncOp>(createInsertWeightParamPass()); // PrepareQuantizePass uses SymbolTable to fetch relevant GEMM ops for // determining quantization attributes. This requires module-level context.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc
ModuleOp module = op->getParentOfType<ModuleOp>(); SymbolTable symbol_table(module); func::FuncOp float_func = dyn_cast<func::FuncOp>(symbol_table.lookup(function_name)); OperandRange func_args = op.getArgs(); func::FuncOp new_float_func = float_func.clone(); SmallVector<Value> new_float_func_args{func_args.begin(), func_args.end()};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.h.inc" struct XlaRewritePass : public impl::XlaRewritePassBase<XlaRewritePass> { void runOnOperation() override; }; void MoveResourceArgsToEnd(func::FuncOp callee) { llvm::DenseMap<BlockArgument, BlockArgument> mapping; unsigned num_params = callee.getNumArguments(); llvm::BitVector removed_params(num_params); // Copy the resource-type parameters to the end.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/device_index_selector.cc
struct DeviceIndexSelector : public impl::DeviceIndexSelectorPassBase<DeviceIndexSelector> { void runOnOperation() override; }; } // namespace void DeviceIndexSelector::runOnOperation() { func::FuncOp func = getOperation(); // Convert all the DeviceIndex ops to constant values. func.getBody().walk([](TF::DeviceIndexOp op) { // This just selects the default in all cases where DeviceIndex feeds into
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc
#include "tensorflow/compiler/mlir/lite/utils/utils.h" #include "tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h" namespace mlir { namespace TFL { void ConvertTFLQuantOpsToMlirQuantOps(func::FuncOp func) { OpBuilder b(func); func.walk([&](Operation* op) { b.setInsertionPoint(op); if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) { auto dcast = b.create<quantfork::DequantizeCastOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 02:50:01 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
void EnqueueCallers(func::FuncOp fn); // Returns the function at the front of the queue. func::FuncOp front() { return queue_.front(); } // Returns whether work queue is empty. bool EmptyQueue() const { return queue_.empty(); } // Returns function from the front of the work queue. func::FuncOp pop_front() { func::FuncOp ret = queue_.front(); queue_.pop();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc
absl::Status SetupArguments(mlir::ModuleOp module, std::vector<TensorShape>& arg_shapes, tpu::TPUCompileMetadataProto& metadata_proto) { auto main_fn = module.lookupSymbol<mlir::func::FuncOp>(kEntryFuncName); if (!main_fn) { return absl::InternalError("Could not find main function in MLIR Module."); } mlir::FunctionType func_type = main_fn.getFunctionType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 23:59:33 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
if (old_val.getType() == new_val.getType()) { old_val.replaceAllUsesWith(new_val); return; } Operation* old_op = old_val.getDefiningOp(); Operation* terminator_op = old_op->getParentOfType<func::FuncOp>().front().getTerminator(); llvm::SmallPtrSet<mlir::Operation*, 1> exceptions = {terminator_op}; old_val.replaceAllUsesExcept(new_val, exceptions); } struct TensorArrayStats {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc
resource_alias_info_map.empty()) { return; } FlatSymbolRefAttr func_attr = cluster_func.getFuncAttr(); func::FuncOp device_func = module.lookupSymbol<func::FuncOp>(func_attr.getValue()); AddAliasingAttributeToDeviceFunc(device_func, resource_alias_info_map); }); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 04:14:26 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.h
// Helper data structure for output parameters to `ExtractSubgraphToFunc`. // `ExtractSubgraphToFunc` adds exactly two "new" `Operations`, a FuncOp and // a CallOp. Pass these back to the caller for setting more specific attributes // after graph mutation has taken place. struct OpsAdded { mlir::func::FuncOp func_op; mlir::func::CallOp call_op; }; // Given a `Subgraph` containing a sequence of adjacent `Operations` from
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 17 18:49:43 UTC 2022 - 6K bytes - Viewed (0)