Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID (0.51 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc

    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    struct LegalizeJaxRandomPass
        : public impl::LegalizeJaxRandomPassBase<LegalizeJaxRandomPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeJaxRandomPass)
    
      void runOnOperation() override;
    };
    
    inline ConstBytesAttr CustomOption(ImplicitLocOpBuilder *builder,
                                       const std::string &content) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

    }
    
    // CPU hardware class which handles CPU capabilities in TFLite.
    // This is used by TAC to get op supported/ op cost estimates on CPU.
    class CpuHardware : public TargetHardware {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CpuHardware)
    
      // String Identifier for CPU hardware.
      static constexpr char kId[] = "CPU";
    
      double GetHardwareSwitchingCost(const TargetHardware* from,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

    namespace {
    
    constexpr StringRef kDequantizeFunctionName = "composite_dequantize";
    
    class PropagateQuantizeType
        : public PassWrapper<PropagateQuantizeType, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PropagateQuantizeType)
    
      // Constructor used by the PassRegistration. This will remove the adaptor ops.
      explicit PropagateQuantizeType() = default;
    
      StringRef getArgument() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

          total_element_count += input_type.getNumElements();
        }
      }
      return total_element_count;
    }
    
    struct GetOpCostPass
        : mlir::PassWrapper<GetOpCostPass, OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(GetOpCostPass)
    
      llvm::StringRef getArgument() const final { return "tfl-get-op-cost"; }
      llvm::StringRef getDescription() const final {
        return "Get cost for every op";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. 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 {
        // This is the argument used to refer to the pass in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

    // TensorFlow Lite hash table kernels.
    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;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc

    namespace {
    
    // Applies clean-up patterns after quantization.
    class PostQuantizePass : public impl::PostQuantizePassBase<PostQuantizePass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PostQuantizePass)
    
      explicit PostQuantizePass() = default;
    
     private:
      void runOnOperation() override;
    };
    
    // TODO: b/305815328 - Consider preserving leading and trailing QDQs for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

      }
      return scheduled_everything;
    }
    
    class PartitionedTopologicalSortPass
        : public impl::PartitionedTopologicalSortPassBase<
              PartitionedTopologicalSortPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PartitionedTopologicalSortPass);
    
      explicit PartitionedTopologicalSortPass(
          const std::function<bool(Operation *)> &partition = IsFlexDelegate)
          : partition_(partition) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    // Applies all the clean up steps after quantization.
    class PostQuantizePass : public impl::PostQuantizePassBase<PostQuantizePass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PostQuantizePass)
    
      // Constructor used by the PassRegistration. This will remove the adaptor ops.
      explicit PostQuantizePass() { this->emit_quant_adaptor_ops_ = false; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc

    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    struct SplitMergedOperandsPass
        : public impl::SplitMergedOperandsPassBase<SplitMergedOperandsPass> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(SplitMergedOperandsPass)
    
      void runOnOperation() override;
    };
    
    LogicalResult DuplicateValueIfNeeded(Operation* op,
                                         llvm::DenseSet<Value>* values,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top