#ifndef __NEURUN_UTIL_UTILS_H__
#define __NEURUN_UTIL_UTILS_H__
+// TODO remove include "NeuralNetworks.h"
#include "NeuralNetworks.h"
+#include "model/InternalType.h"
#define UNUSED_RELEASE(a) (void)(a)
{
/**
- * @brief Converts a PaddingCode to const char*
- * @param[in] code The PaddingCode to be converted
+ * @brief Converts a internal padding type to const char*
+ * @param[in] code Padding type to be converted
* @return A string holding the converted value
*/
-const char *to_string(const PaddingCode &code);
+const char *to_string(const model::Padding &type);
} // namespace util
} // namespace neurun
namespace util
{
-const char *to_string(const PaddingCode &code)
+const char *to_string(const model::Padding &type)
{
- assert((ANEURALNETWORKS_PADDING_SAME == code) || (ANEURALNETWORKS_PADDING_VALID == code));
+ assert((type == model::Padding::EXPLICIT) || (type == model::Padding::SAME) ||
+ (type == model::Padding::VALID));
- switch (code)
+ switch (type)
{
- case ANEURALNETWORKS_PADDING_SAME:
- return "ANEURALNETWORKS_PADDING_SAME";
- case ANEURALNETWORKS_PADDING_VALID:
- return "ANEURALNETWORKS_PADDING_VALID";
+ case model::Padding::EXPLICIT:
+ return "Padding::EXPLICIT";
+ case model::Padding::SAME:
+ return "Padding::SAME";
+ case model::Padding::VALID:
+ return "Padding::VALID";
}
return nullptr;