nd4j.graph.FlatResult.endFlatResult = function(builder) {
  var offset = builder.endObject();
  return offset;
};