Skip to content
Snippets Groups Projects
Select Git revision
  • 974b9b2c68f3d35a65e80af9657fe378d2439b60
  • openEuler-1.0-LTS default protected
  • OLK-5.10
  • openEuler-22.09
  • openEuler-22.03-LTS
  • openEuler-22.03-LTS-Ascend
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 4.19.90-2210.5.0
  • 5.10.0-123.0.0
  • 5.10.0-60.63.0
  • 5.10.0-60.62.0
  • 4.19.90-2210.4.0
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
33 results

hibernate.c

Blame
  • concat_kernel.h 956 B
    #ifndef ONEFLOW_CORE_KERNEL_CONCAT_KERNEL_H_
    #define ONEFLOW_CORE_KERNEL_CONCAT_KERNEL_H_
    
    #include "oneflow/core/kernel/kernel.h"
    
    namespace oneflow {
    
    template<DeviceType device_type, typename T>
    class ConcatKernel final : public KernelIf<device_type> {
     public:
      OF_DISALLOW_COPY_AND_MOVE(ConcatKernel);
      ConcatKernel() = default;
      ~ConcatKernel() = default;
    
     private:
      void ConcatKernelWork(const KernelCtx& ctx, const std::string& obn,
                            const PbRpf<std::string>& ibns,
                            std::function<Blob*(const std::string&)> BnInOp2Blob) const;
    
      void ForwardDataContent(const KernelCtx& ctx,
                              std::function<Blob*(const std::string&)> BnInOp2Blob) const override;
    
      void BackwardDataContent(const KernelCtx& ctx,
                               std::function<Blob*(const std::string&)> BnInOp2Blob) const override;
    };
    
    }  // namespace oneflow
    
    #endif  // ONEFLOW_CORE_KERNEL_CONCAT_KERNEL_H_