Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 293 for runOnOperation (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize.cc

      explicit QuantizePass(const bool enable_per_channel_quantized_weight) {
        enable_per_channel_quantized_weight_ = enable_per_channel_quantized_weight;
      }
    
     private:
      void runOnOperation() override;
    };
    
    void QuantizePass::runOnOperation() {
      ModuleOp module_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<StableHloQuantization, StableHloQuantizationReverse>(&ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 07:08:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc

        return "quant-merge-duplicate-resource-ops";
      }
    
      StringRef getDescription() const final {
        return "Merge resource ops that have the same shared name.";
      }
    
      void runOnOperation() override;
    };
    
    // Checks if the island op contains a resource op like Variable or Hashtable
    // and returns that resource op. Otherwise, returns null.
    Operation* GetResourceOp(Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 04:26:16 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.h.inc"
    
    // Validate input graph.
    struct XlaValidateInputsPass
        : public impl::XlaValidateInputsPassBase<XlaValidateInputsPass> {
      void runOnOperation() override;
    };
    
    LogicalResult HasNoNestedEntryFunctions(
        const llvm::SmallVector<func::FuncOp> &entry_funcs, SymbolTable &symtab) {
      auto calls_entry_functions = [&](SymbolUserOpInterface op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 19:29:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_post_calibration_component.cc

          TestPostCalibrationComponentPass>::TestPostCalibrationComponentPassBase;
    
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestPostCalibrationComponentPass)
    
     private:
      void runOnOperation() override;
    };
    
    void TestPostCalibrationComponentPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      MLIRContext& ctx = getContext();
    
      OpPassManager pm(ModuleOp::getOperationName());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc

    class RemoveVariablesInSessionInitializerPass
        : public impl::RemoveVariablesInSessionInitializerPassBase<
              RemoveVariablesInSessionInitializerPass> {
     public:
      void runOnOperation() override;
    };
    
    void RecursiveRemove(Operation* op,
                         llvm::SmallVectorImpl<Operation*>& erase_list,
                         llvm::SmallPtrSetImpl<Operation*>& dead_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc

    struct ConstantOpDeviceAssignmentPass
        : public impl::ConstantOpDeviceAssignmentPassBase<
              ConstantOpDeviceAssignmentPass> {
      void runOnOperation() override;
    };
    
    void ConstantOpDeviceAssignmentPass::runOnOperation() {
      ModuleOp module = getOperation();
    
      module.walk([&](TF::ConstOp op) {
        // Keep the ConstOp if the op already have the device attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc

      llvm::StringRef getDescription() const final {
        return "Compute the total cost for each available subgraph.";
      }
      void runOnOperation() override;
    };
    
    void ComputeCostPass::runOnOperation() {
      auto module = getOperation();
    
      for (auto func : module.getOps<func::FuncOp>()) {
        // We only care about those functions annotated with "tac.interface_name".
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

    struct TPUHostComputationExpansionPass
        : public impl::TPUHostComputationExpansionPassBase<
              TPUHostComputationExpansionPass> {
      void runOnOperation() override;
    };
    
    void TPUHostComputationExpansionPass::runOnOperation() {
      OpBuilder builder(&getContext());
      getOperation().walk([&](tf_device::ClusterOp cluster) {
        ExpandHeadOutsideCompiledOps(cluster, &builder);
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc

        : public impl::ReduceTypePrecisionPassBase<ReduceTypePrecisionPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(ReduceTypePrecisionPass)
      void runOnOperation() override;
    };
    
    void ReduceTypePrecisionPass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      patterns.add<CheckRangeAndConvertI8ToI4, SanitizeGatherOpOutputToI4>(
          &getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc

    struct HoistReplicateInvariantResourceWritesPass
        : public impl::HoistReplicateInvariantResourceWritesPassBase<
              HoistReplicateInvariantResourceWritesPass> {
      void runOnOperation() override;
    };
    
    // TODO(prakalps): This is a common utility and other passes use something
    // similar. Move to common utils.
    bool IsResourceType(Type type) {
      return type.isa<TF::ResourceType>() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.8K bytes
    - Viewed (0)
Back to top