#pragma once #include "op.h" namespace ctranslate2 { namespace ops { class ReLU : public UnaryOp { public: void operator()(const StorageView& x, StorageView& y) const override; private: template void compute(const StorageView& x, StorageView& y) const { y.resize_as(x); primitives::relu(x.data(), y.data(), x.size()); } }; } }