Commit 210c9839 authored by Khalique's avatar Khalique
Browse files

changed padding mode to enum

parent aaf0f9e1
......@@ -614,7 +614,13 @@ struct pad
{
std::vector<int64_t> pads;
float value = 0.0f;
std::string mode = "constant";
enum padding_mode_t
{
constant_, //NOLINT
reflect_, //NOLINT
edge
};
padding_mode_t mode = constant_;
template <class Self, class F>
static auto reflect(Self& self, F f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment