- include <algorithm> for std::min. - replace memmem with std::search, which is more portable.
- include <algorithm> for std::min.
- replace memmem with std::search, which is more portable.

cg31/tensorflow,cg31/tensorflow,cg31/tensorflow,cg31/tensorflow,cg31/tensorflow,cg31/tensorflow,cg31/tensorflow,cg31/tensorflow,cg31/tensorflow