Skip to content
Snippets Groups Projects
Select Git revision
  • 90d471b133a6f5abf7d1170277748274a0ef9e6b
  • master default protected
  • benchmark protected
  • v2.0.0-rc4
  • v2.0.0-rc2
  • v2.0.0-rc1
  • v1.1.1
  • v1.1.0
  • v1.0.0
  • v0.10.6
  • v0.10.5
  • v0.10.4
  • v0.10.3
  • v0.10.2
  • v0.10.1
  • v0.8.1
  • v0.10.0
  • v0.9.1
  • v0.9.0
  • v0.8.0
  • v0.7.1
  • v0.7.0
  • v0.6.0
23 results

querynode.go

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_