- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 445 for FuncOp (0.09 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
// Adds QuantizationUnitLoc to quantizable layers. class AddQuantizationUnitLocPass : public PassWrapper<AddQuantizationUnitLocPass, OperationPass<func::FuncOp>> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(AddQuantizationUnitLocPass) explicit AddQuantizationUnitLocPass() = default; StringRef getArgument() const final {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc
if (options.enable_inliner) { pm.addPass(createInlinerPass()); } pm.addPass(createSymbolDCEPass()); pm.addNestedPass<func::FuncOp>(CreateTFOptimizePass()); pm.addNestedPass<func::FuncOp>(createCSEPass()); } std::unique_ptr<OperationPass<func::FuncOp>> CreateTFOptimizePass() { return std::make_unique<TensorFlowOptimizePass>(); } void RegisterTFOptimizePassPipeline() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables_test_pass.cc
namespace { // This pass is only available in the tf-opt binary for testing. class MarkInitializedVariablesTestPass : public PassWrapper<MarkInitializedVariablesTestPass, OperationPass<func::FuncOp>> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MarkInitializedVariablesTestPass) StringRef getArgument() const final { return "tf-saved-model-mark-initialized-variables-test"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" namespace mlir::quant { namespace { // Applies optimization after quantization. class OptimizePass : public PassWrapper<OptimizePass, OperationPass<func::FuncOp>> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(OptimizePass) StringRef getArgument() const final { // This is the argument used to refer to the pass in
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.h
// Return if the function contains only non-side-effecting ops or TensorArray // ops. bool HasAtMostTensorArrayEffect(mlir::func::FuncOp func_op) const { return set_.count(func_op) > 0; } private: llvm::DenseSet<mlir::func::FuncOp> set_; }; } // namespace tfrt_compiler } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc
StringRef(content.data(), content.size())); } inline bool IsJaxRandomUniform(mlir::func::FuncOp func) { return func.getName().contains("tfl_wrapped_jax_random_uniform"); } inline bool IsJaxRandomNormal(mlir::func::FuncOp func) { return func.getName().contains("tfl_wrapped_jax_random_normal"); } void LegalizeJaxRandomPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc
if (!interface) return false; return interface.onlyHasEffect<MemoryEffects::Read>(); } // Get read only variable handles in `func`. llvm::DenseSet<ResourceHandle> GetReadOnlyVariables(func::FuncOp func) { llvm::DenseMap<ResourceHandle, llvm::SmallVector<Operation *, 4>> resources; // Get all VarHandleOps in the function. func.walk([&](Operation *op) { if (llvm::isa<VarHandleOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/insert_call_once_op.cc
void runOnOperation() override; }; void InsertCallOnceOpFromSessionInitializerPass::runOnOperation() { ModuleOp module = getOperation(); for (func::FuncOp init_func_op : tf_saved_model::GetInitializerFunctions(module)) { for (auto func : module.getOps<func::FuncOp>()) { auto dict_attr = func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function"); if (!dict_attr) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 01 05:03:09 UTC 2023 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/test_cluster_ops_by_policy.cc
operands.Insert(op->getOperand(0), ValueConstraint::kShape); } return success(); } }; void TestClusteringPolicyPass::runOnOperation() { func::FuncOp func = getOperation(); ValuesConstraintSet constraints; ClusteringPolicySet policies; policies.Add<TestOpsClusteringPolicy>(); // Initialize constraints based on the return type attributes.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
} else if (isa<IdentityNOp, IdentityOp>(op)) { value = op->getOperand(res_index); } else if (auto call = dyn_cast<CallOpInterface>(op)) { func::FuncOp func = dyn_cast<func::FuncOp>( call.resolveCallable(&symbol_table_collection_)); if (!func) break; // Check if the function being called has been analyzed. if not, // we cannot backtrack the value further.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0)