1 #include "PvpLayer.hpp" 2 #include "arch/mpi/mpi.h" 3 #include "io/FileStream.hpp" 4 #include "io/fileio.hpp" 5 #include "structures/SparseList.hpp" 12 PvpLayer::PvpLayer(
const char *name, HyPerCol *hc) { initialize(name, hc); }
14 PvpLayer::~PvpLayer() {}
16 Response::Status PvpLayer::allocateDataStructures() {
return InputLayer::allocateDataStructures(); }
20 getInputPath().c_str(), std::ios_base::in | std::ios_base::binary,
false);
23 int pvpFrameCount = header.nBands;
24 if (header.fileType == PVP_ACT_SPARSEVALUES_FILE_TYPE || header.fileType == PVP_ACT_FILE_TYPE) {
25 sparseTable = BufferUtils::buildSparseFileTable(headerStream, pvpFrameCount - 1);
35 BufferUtils::readActivityFromPvp<float>(
36 getInputPath().c_str(), &result, inputIndex, &sparseTable);
virtual int countInputImages() override
virtual Buffer< float > retrieveData(int inputIndex) override