This will move vector<int64_t> streamout of TFFormattedGraph to LogHelper
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
}
} // namespace loco
+
+std::ostream &operator<<(std::ostream &os, const std::vector<int64_t> &vi64)
+{
+ for (auto vi : vi64)
+ {
+ os << vi << " ";
+ }
+ return os;
+}
#include <loco/IR/TensorShape.h>
#include <sstream>
+#include <vector>
namespace loco
{
} // namespace loco
+/**
+ * @brief dump std::vector<int64_t> values to stream
+ */
+std::ostream &operator<<(std::ostream &os, const std::vector<int64_t> &vi64);
+
#endif // __LOG_HELPER_H__
#include "Dialect/TFDialect.h"
#include "Dialect/TFNodes.h"
+#include "LogHelper.h"
+
#include <sstream>
namespace
return true;
}
-std::ostream &operator<<(std::ostream &os, const std::vector<int64_t> &vi64)
-{
- for (auto vi : vi64)
- {
- os << vi << " ";
- }
- return os;
-}
-
bool TFNodeSummaryBuilder::summary(const TFConv2D *node, locop::NodeSummary &s) const
{
std::ostringstream ss;