opr_impl.h 780 字节
Newer Older
1 2 3 4 5 6 7 8 9
#pragma once
#include "megdnn/oprs.h"

namespace megdnn {
namespace cuda {
class ResizeImpl : public Resize {
public:
    using Resize::Resize;

M
Megvii Engine Team 已提交
10 11 12
    void exec(
            _megdnn_tensor_in src, _megdnn_tensor_out dst,
            _megdnn_workspace workspace) override;
13

M
Megvii Engine Team 已提交
14
    size_t get_workspace_in_bytes(const TensorLayout&, const TensorLayout&) override;
15 16 17 18 19
};

class ResizeBackwardImpl final : public ResizeBackward {
public:
    using ResizeBackward::ResizeBackward;
M
Megvii Engine Team 已提交
20 21 22 23 24
    void exec(
            _megdnn_tensor_in diff, _megdnn_tensor_out grad,
            _megdnn_workspace workspace) override;
    size_t get_workspace_in_bytes(
            const TensorLayout& diff, const TensorLayout& grad) override;
25 26 27 28 29 30
};

}  // namespace cuda
}  // namespace megdnn

// vim: syntax=cpp.doxygen