Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion api/datatype.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,44 @@ enum DataType {
kTimestamps = 4;
kImage = 5;
kWaveforms = 6;
}
}

// A simple tensor with timestamped data
message Tensor {
Comment thread
gilbert-sci marked this conversation as resolved.
// Timestamp in ns since the unix epoch
uint64 timestamp_ns = 1;

// Shape of the tensor
// The number of values should equal to the product of the dimensions
// e.g. shape = [2, 3] => 2 rows, 3 columns
repeated int32 shape = 2;

// Expected data type to parse out
enum DType {
DT_INVALID = 0;
DT_FLOAT = 1;
DT_DOUBLE = 2;
DT_UINT8 = 3;
DT_UINT16 = 4;
DT_UINT32 = 5;
DT_UINT64 = 6;
DT_INT8 = 7;
DT_INT16 = 8;
DT_INT32 = 9;
DT_INT64 = 10;
DT_BOOL = 11;
}
DType dtype = 3;

enum Endianness {
LITTLE_ENDIAN = 0;
BIG_ENDIAN = 1;
}
// We default to little because that covers most of the use cases
Endianness endianness = 4;

// Data, stored in a flat array, see shape to reconstruct
// e.g. shape: [1, 3] would be:
// [10.0, 20.0, 30.0]
bytes data = 5;
}
3 changes: 3 additions & 0 deletions api/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import "api/nodes/stream_in.proto";
import "api/nodes/disk_writer.proto";
import "api/nodes/spike_source.proto";
import "api/nodes/spike_binner.proto";
import "api/nodes/controller.proto";

enum NodeType {
kNodeTypeUnknown = 0;
Expand All @@ -26,6 +27,7 @@ enum NodeType {
kSpectralFilter = 8;
kDiskWriter = 9;
kSpikeBinner = 10;
kController = 11;
}

message NodeConfig {
Expand All @@ -42,6 +44,7 @@ message NodeConfig {
DiskWriterConfig disk_writer = 11;
SpikeSourceConfig spike_source = 12;
SpikeBinnerConfig spike_binner = 13;
ControllerNodeConfig controller = 14;
}
}

Expand Down
7 changes: 7 additions & 0 deletions api/nodes/controller.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";

package synapse;

message ControllerNodeConfig {

}