Loading...
Searching...
No Matches
CapnProtoManager.cpp File Reference
#include "CapnProtoManager.h"
#include <capnp/any.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <array>
#include "gpr/Enums.h"
#include "schema/gprd_params.capnp.h"

Go to the source code of this file.

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
namespace  gpr::io

Functions

void gpr::io::loadParametersFromCapnp (const std::string &binary_filename, gpr::InputParameters &parameters)
 Loads parameters by reading a memory-mapped Cap'n Proto binary file.
bool gpr::io::readerIsLegacyDimer (capnp::MessageReader &reader)
 Whether reader is a gprd_params.capnp message rather than a params.capnp message.
void gpr::io::overlayLegacyDimerReader (capnp::MessageReader &reader, gpr::schema::InputParameters::Builder unified)
 Copy a gprd_params.capnp reader onto a unified builder.