- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 445 for FuncOp (0.19 sec)
-
tensorflow/compiler/mlir/lite/transforms/passes.td
]; } def IdentifyDilatedConvPass : Pass<"tfl-identify-dilated-conv", "mlir::func::FuncOp"> { let summary = "Convert dense tensor to sparse format."; let constructor = "CreateIdentifyDilatedConvPass()"; let dependentDialects = ["TFL::TensorFlowLiteDialect"]; } def GetArithmeticCountPass : Pass<"tfl-get-arithmetic-count", "mlir::func::FuncOp"> { let summary = "Calculate arithmetic count for tfl operations.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 22.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h
// input and output types by unwrapping quantization parameters. std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(); // Overloading of CreateQuantizePass which takes QuantizationSpecs. std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass( QuantizationSpecs quant_specs, tensorflow::quantization::OpSet target_opset);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
// moved to the main function. Returns failure() iff validation fails. FailureOr<absl::flat_hash_map<std::string, func::FuncOp>> GetInitFuncOps( ModuleOp module_op) { absl::flat_hash_map<std::string, func::FuncOp> init_func_ops; for (func::FuncOp init_func_op : GetInitializerFunctions(module_op)) { if (failed(ValidateInitFunc(init_func_op))) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model_test.cc
constexpr StringRef kModuleOpStr = R"mlir(module attributes {tf_saved_model.semantics} {})mlir"; Block block; ModuleOp module_op = ParseModuleOp(kModuleOpStr, block, ctx_); func::FuncOp init_func_op = GetInitializerFunction( module_op, /*initializer_type=*/kTfSavedModelInitializerInitType); EXPECT_THAT(init_func_op, IsNull()); } TEST_F(TfSavedModelTest,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 01 05:03:09 UTC 2023 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.h
// back to the original representation using `ConvertBackward` function during // deconstruction. template <void (*ConvertForward)(func::FuncOp), void (*ConvertBackward)(func::FuncOp)> class ScopedOpsConverter { public: explicit ScopedOpsConverter(func::FuncOp func) : func_(func) { ConvertForward(func_); } ScopedOpsConverter(const ScopedOpsConverter&) = delete;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc
/*prefix=*/filename_arg, tensor_names_const, shape_and_slices_const, /*tensors=*/tensor_values); } // Creates and returns a new `FuncOp` named "tf_quant__save". The resulting // `FuncOp`'s body has no ops. func::FuncOp CreateEmptySaveFunc(ModuleOp module_op) { OpBuilder builder(module_op); builder.setInsertionPointToEnd(&module_op.getBodyRegion().front());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/perception_ops_utils.h
class ConvertMaxUnpoolingFunc { public: explicit ConvertMaxUnpoolingFunc(func::FuncOp func, mlir::TF::FuncAttr attr) : func_(func), attr_(attr) {} LogicalResult RewriteFunc(); LogicalResult VerifySignature(); private: LogicalResult CreateCustomOptions(std::string& custom_option_buffer); func::FuncOp func_; mlir::TF::FuncAttr attr_; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 17:42:55 UTC 2022 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc
}; // Returns true iff func_op has either no Region or the body has no Blocks. bool IsFuncOpEmpty(func::FuncOp func_op) { return func_op->getNumRegions() == 0 || func_op.getBody().empty(); } // Gets the GraphOp from the function op. Returns an empty op iff it doesn't // exist. GraphOp GetGraphOpFromFuncOp(func::FuncOp func_op) { if (IsFuncOpEmpty(func_op)) return {}; auto graph_op_range = func_op.front().without_terminator();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
void EliminateUnusedResultsForIfCase(Operation *op, ArrayRef<func::FuncOp> branches) { // Clone branch functions if needed since we will be mutating them. SmallVector<func::FuncOp, 2> cloned_branches; cloned_branches.reserve(branches.size()); for (func::FuncOp func : branches) { func::FuncOp cloned = CloneFunctionIfNeeded(func); cloned_branches.push_back(cloned);
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/lite/experimental/tac/transforms/pick_subgraphs.cc
// A subgraph may associate with 1...n FuncOp, and each FuncOp may correspond // with different hardwares. struct Subgraph { // The call can be thought as an "API". func::CallOp call; // available_choces can be viewed as "real implementation" assosicated with // the hardware. std::unordered_map<InferenceDeviceType, func::FuncOp, InferenceDeviceType::inference_device_type_hash>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 19.7K bytes - Viewed (0)