提交 3e6ecc1e 编写于 作者: G gineshidalgo99

Bug: included std::accumulate header

上级 6ed98cc1
#include <typeinfo> // typeid #include <typeinfo> // typeid
#include <numeric> // std::accumulate
#include "openpose/utilities/errorAndLog.hpp" #include "openpose/utilities/errorAndLog.hpp"
#include "openpose/core/array.hpp" #include "openpose/core/array.hpp"
...@@ -340,8 +341,8 @@ namespace op ...@@ -340,8 +341,8 @@ namespace op
{ {
try try
{ {
int index = 0; auto index = 0;
int accumulated = 1; auto accumulated = 1;
for (auto i = 0 ; i < indexes.size() ; i++) for (auto i = 0 ; i < indexes.size() ; i++)
{ {
index += accumulated * indexes[i]; index += accumulated * indexes[i];
......
#ifdef USE_CAFFE #ifdef USE_CAFFE
#include <numeric> // std::accumulate
#include "openpose/utilities/cuda.hpp" #include "openpose/utilities/cuda.hpp"
#include "openpose/utilities/errorAndLog.hpp" #include "openpose/utilities/errorAndLog.hpp"
#include "openpose/core/netCaffe.hpp" #include "openpose/core/netCaffe.hpp"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册