17#ifndef __DALGONA_UTILS_H__
18#define __DALGONA_UTILS_H__
20#include <luci_interpreter/Interpreter.h>
22#include <pybind11/embed.h>
24namespace py = pybind11;
29template <
typename... Args>
void pySafeCall(py::object func, Args... args)
35 catch (py::error_already_set &e)
37 throw std::runtime_error(e.what());
std::vector< py::dict > inputsPyArray(const luci::CircleNode *node, luci_interpreter::Interpreter *interpreter)
std::vector< py::dict > outputsPyArray(const luci::CircleNode *node, luci_interpreter::Interpreter *interpreter)
void pySafeCall(py::object func, Args... args)
py::dict outputPyArray(const luci::CircleNode *node, luci_interpreter::Interpreter *interpreter)
bool multi_out_node(const luci::CircleNode *node)