Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 87 for getOperation (0.23 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

      auto* ctx = &getContext();
    
      RewritePatternSet patterns(ctx);
      patterns.add<TransposeCommuteWithPad, TransposeCommuteWithReduceWindow>(ctx);
      if (failed(
              applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)))) {
        return signalPassFailure();
      }
    }
    
    }  // end namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTransposeCommuteOpsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

          FoldConstantTransposePass>::FoldConstantTransposePassBase;
    
     private:
      void runOnOperation() override;
    };
    
    void FoldConstantTransposePass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<FoldTransposedConstantOp>(&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
    - 7.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

    void LiftQuantizableSpotsAsFunctionsDRQPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      ModuleOp module = getOperation();
    
      populateWithGenerated(patterns);
      patterns.add<CheckQuantizableOps>(ctx, quantization_method_, target_opset_,
                                        min_num_elements_for_weights_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

        this->allow_mutable_tensors = allow_mutable_tensors;
      }
      void runOnOperation() override;
    };
    
    void FreezeGlobalTensorsPass::runOnOperation() {
      auto module = getOperation();
      if (!tf_saved_model::HasTfSavedModelSemantics(module)) return;
    
      DataFlowSolver solver;
      solver.load<dataflow::DeadCodeAnalysis>();
      solver.load<dataflow::SparseConstantPropagation>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc

      op_with_dialect_count_.clear();
      dialect_count_.clear();
      dialect_name_of_.clear();
    
      // Compute the operation statistics for the currently visited operation.
      total_ops_ = 0;
    
      getOperation()->walk([&](Operation *op) {
        auto op_with_dialect_name = op->getName().getStringRef();
        auto op_name = op->getName().stripDialect();
        auto dialect_name = op->getDialect()->getNamespace();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        pattern_list.add<SimplifyBroadcastReshape>(context);
        patterns = std::move(pattern_list);
        return success();
      }
    
      void runOnOperation() override {
        auto func = getOperation();
        if (failed(applyPatternsAndFoldGreedily(func, patterns)))
          signalPassFailure();
      }
    
      FrozenRewritePatternSet patterns;
    };
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
    };
    
    TEST_F(LegalizationOpConfigTest, FailsWithExpectsLegalizationWithMlir) {
      TF_EXPECT_OK(CreateMlirModule());
      EXPECT_FALSE(IsOpLegalizedWithMlir(*module_->getOperation()));
    }
    
    TEST_F(LegalizationOpConfigTest, ExpectsFalseForNonMlirOps) {
      TF_EXPECT_OK(CreateMlirModule());
      TF_ASSERT_OK_AND_ASSIGN(FuncOp main, GetMain());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

        registry.insert<mlir::tf_saved_model::TensorFlowSavedModelDialect,
                        ml_program::MLProgramDialect>();
      }
    
      void runOnOperation() override {
        if (failed(convertTFGlobals(getOperation()))) {
          signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<Pass> CreateLowerGlobalsToMlProgramPass() {
      return std::make_unique<LowerGlobalsToMlProgram>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

        }
      }
      return success();
    }
    
    void LiftQuantizableSpotsAsFunctionsPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      ModuleOp module_op = getOperation();
    
      simple_patterns::populateWithGenerated(patterns);
      fusion_patterns::populateWithGenerated(patterns);
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

          if (dequantize_op.use_empty()) {
            dequantize_op.erase();
          }
        }
      }
      return success();
    }
    
    void ModifyIONodesPass::runOnOperation() {
      auto func = getOperation();
      auto attrs = func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function");
    
      // Handle the entry functions only.
      if (func.getName() != "main" && (!attrs || attrs.empty())) {
        return;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top