- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 271 for getOperation (0.88 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h
} // Use the min/max from the operands and the num_bits and narrow_range // attribute to create the quantization parameter for the new quantize op. rewriter.setInsertionPointAfter(tf_op.getOperation()); IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits()); BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange()); Type res_type = tf_op.getType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc
if (type.getStorageTypeIntegralWidth() != 32) { return false; } } return true; } void FoldConstantsToSubgraphPass::runOnOperation() { auto module = getOperation(); for (auto fn : module.getOps<func::FuncOp>()) { fn.walk([&](Operation* op) { if (!llvm::isa<TFL::ConstOp, TFL::QConstOp, arith::ConstantOp>(op)) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc
void runOnOperation() override; private: const std::function<bool(Operation *)> partition_; }; void PartitionedTopologicalSortPass::runOnOperation() { func::FuncOp func = getOperation(); if (!PartitionedTopologicalSort(func, &func.getBody().front(), partition_)) { return signalPassFailure(); } } } // namespace std::unique_ptr<OperationPass<func::FuncOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc
registry.insert<mlir::tf_saved_model::TensorFlowSavedModelDialect, ml_program::MLProgramDialect>(); } void runOnOperation() override { auto module = getOperation(); DataFlowSolver solver; solver.load<dataflow::DeadCodeAnalysis>(); solver.load<dataflow::SparseConstantPropagation>(); TF::LoadResourceDataflowAnalysis(solver);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 06 23:53:00 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
<< classes_attr; } return result; } void ConvertReadonlyReferenceVariablesToResourceVariablesPass:: runOnOperation() { func::FuncOp func = getOperation(); OpBuilder builder(func.getContext()); SmallVector<VariableV2Op, 4> variable_v2s_to_replace; // Checks all the VariableV2 ops is read-only via verifying the heuristic
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc
} } )", &test_tac_filters); tac_filters_ = &test_tac_filters; } if (!tac_filters_) { return; } ModuleOp module = getOperation(); OpBuilder builder(module); std::sort(tac_filters_->mutable_tac_filters()->pointer_begin(), tac_filters_->mutable_tac_filters()->pointer_end(), [](const TacFilter* a, const TacFilter* b) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fold_broadcast.cc
changed = true; } return success(changed); } void BroadcastFoldPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); patterns.add<ConvertResultsBroadcastableShapeOp>(func.getContext()); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } } // namespace namespace TF {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
}; PromoteResourcesToArgsPass::PromoteResourcesToArgsPass( llvm::ArrayRef<std::string> functions) { functions_ = functions; } void PromoteResourcesToArgsPass::runOnOperation() { ModuleOp module = getOperation(); if (llvm::size(functions_) == 0) { functions_ = {"main"}; } SymbolTable symbolTable(module); for (const std::string& f : functions_) { func::FuncOp func = symbolTable.lookup<func::FuncOp>(f);
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/lite/transforms/prepare_composite_functions_tf.cc
// Keras LSTM have 5 outputs. // We should make sure only the first or the second output are // consumed. if (failed(CheckOutputConsumer(op.getOperation(), 5, {0, 1}))) return WalkResult::interrupt(); } return WalkResult::advance(); }); if (result.wasInterrupted()) return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc
return type.cloneWith(after_shape, type.getElementType()); } }; } // namespace void NchwConvolutionToNhwcPass::runOnOperation() { func::FuncOp func_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); patterns.add<RewriteNchwConvolutionToNhwc>(&ctx); if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.2K bytes - Viewed (0)