- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 293 for runOnOperation (0.14 sec)
-
tensorflow/compiler/mlir/tfr/passes/decompose.cc
StringRef getArgument() const final { return "tfr-decompose"; } StringRef getDescription() const final { return "Decompose TF ops with the registered composition library."; } void runOnOperation() override; private: // Apply canonicalization, mainly constant folding, on the function. void ApplyCanonicalization(); // Rewrite unregistered TF ops to TFR func call ops. Return failure if all the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
StringRef getArgument() const override { return "quant-insert-main-function"; } StringRef getDescription() const override { return "Inserts the main function to the module."; } void runOnOperation() override; }; // Checks if a FuncOp is exported. bool IsExported(func::FuncOp op) { auto exported_names = op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc
: public impl::LegalizeCompositeToCustomOpPassBase< LegalizeCompositeToCustomOpPass> { using LegalizeCompositeToCustomOpPassBase:: LegalizeCompositeToCustomOpPassBase; void runOnOperation() override { func::FuncOp fn = getOperation(); int num_layers = 0, current_layer_index = 0; // First walk the function to count number of KV Caches. fn.walk([&](Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc
void getDependentDialects(DialectRegistry& registry) const override { 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>();
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/lite/transforms/prepare_composite_functions_tf.cc
void ConvertTFImplementsWithAttributes(func::FuncOp func, FuncAttr attr); void ConvertTFAPIImplements(func::FuncOp func, StringAttr attr, ModuleOp module); void runOnOperation() override; }; LogicalResult CheckFusableLayerNormalizedLstmCellSimple( func::FuncOp lstm_func) { for (int i = 0; i < 5; ++i) { auto input = lstm_func.getArgument(i);
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/tensorflow/passes/prepare_quantize.cc
return "quant-prepare-quantize"; } StringRef getDescription() const final { // This is a brief description of the pass. return "Prepare TF dialect for quantization"; } void runOnOperation() override; private: // Set the quantization parameters of the input nodes. These parameters are // converted from the user specified input value ranges. The input nodes with
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
struct ReplicateToIslandPass : public impl::ReplicateToIslandPassBase<ReplicateToIslandPass> { explicit ReplicateToIslandPass(bool legacy_graph_export) { legacy_graph_export_ = legacy_graph_export; } void runOnOperation() override; }; // Returns whether op requires `_xla_replica_id` attribute. bool RequiresReplicaIDAttribute(Operation* op) { return llvm::isa<TF::EnqueueTPUEmbeddingSparseTensorBatchOp,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/sparsecore_passes.h.inc" struct EmbeddingProgramKeyPass : public impl::EmbeddingProgramKeyPassBase<EmbeddingProgramKeyPass> { void runOnOperation() override; }; // Checks if `op` is nested in `block`. bool OpInBlock(Operation* op, Block* block) { Block* op_block = op->getBlock(); while (op_block) { if (op_block == block) return true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc
class LegalizeHashTablesPass : public impl::LegalizeHashTablesPassBase<LegalizeHashTablesPass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeHashTablesPass) void runOnOperation() override { auto module = getOperation(); if (!checkWhetherGraphHasValidStaticLookupTables(module)) { return; } RewritePatternSet patterns(&getContext()); patterns
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc
public: StringRef getArgument() const final { return "fuse-mhlo-convolution-pass"; } StringRef getDescription() const final { return "Fuses MHLO binary element-wise ops and convolution op"; } void runOnOperation() override { RewritePatternSet patterns(&getContext()); patterns.add<FuseMhloMulAndConvolutionPattern>(&getContext()); if (failed(applyPatternsAndFoldGreedily(getOperation(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 22:21:19 UTC 2024 - 8.3K bytes - Viewed (0)