Size: 573 bytes.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// cs/ai/protos/mnist_data.proto.hh
#ifndef CS_AI_PROTOS_MNIST_DATA_PROTO_HH
#define CS_AI_PROTOS_MNIST_DATA_PROTO_HH

#include <string>

#include "cs/net/proto/proto.hh"

namespace cs::ai::protos {

// MNIST dataset payload.
DECLARE_PROTO(MNISTData) {
  // Training images.
  std::vector<std::vector<float>> train_images;
  // Training labels.
  std::vector<int> train_labels;
  // Test images.
  std::vector<std::vector<float>> test_images;
  // Test labels.
  std::vector<int> test_labels;
};

}  // namespace cs::ai::protos

#endif  // CS_AI_PROTOS_MNIST_DATA_PROTO_HH
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-2:8080 in 4ms.