splitNode returns Expected<std::vector<Node *>> . So you need something like:
std::vector<Node *> splitNodes;
ASSIGN_VALUE_OR_FATAL(splitNodes, glow::splitNode(Node, SplitNodeByNumChunks({1}, {2})))

Even if you don’t need splitNodes. Or else you can handle the error using your own custom code, check Error.h for ASSIGN_VALUE_OR_FATAL and other options.