Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CpuHardware (0.17 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

      return std::make_unique<CpuHardware>();
    }
    
    TargetHardwareRegistration<CpuHardware> cpu_hardware("Target device for CPU",
                                                         CreateCpuHardware);
    
    #define TAC_REGISTER_CPU_OP(Op, Create)                                    \
      TargetHardwareOpRegistration<CpuHardware, Op> Op##_CpuHardware_hardware( \
          Create);
    
    // Operation costs on CPU
    
    // Currently used for these ops:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    std::unique_ptr<TargetHardware> CreateGpuHardware() {
      return std::make_unique<GpuHardware>();
    }
    
    TargetHardwareRegistration<GpuHardware> gpu_hardware("Target device for GPU",
                                                         CreateGpuHardware);
    
    #define TAC_REGISTER_GPU_OP(Op, Create)                                    \
      TargetHardwareOpRegistration<GpuHardware, Op> Op##_GpuHardware_hardware( \
          Create);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.h

    // This is used by TAC to get op supported/ op cost estimates on GPU.
    class GpuHardware : public TargetHardware {
     public:
      static constexpr char kId[] = "GPU";
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override;
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<GpuHardware>();
      }
    
      double GetHardwareSwitchingCost(const TargetHardware* from,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.cc

      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
    }
    
    }  // namespace
    
    RewritePatternSet GetHardwareRewritePatternsGPU(MLIRContext* context) {
      GpuHardware gpu_hardware;
      return gpu_hardware.GetTransformations(context);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateDeviceTransformGPUPass() {
      return std::make_unique<DeviceTransformGPUPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top