Skip to content
Merged
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
10 changes: 9 additions & 1 deletion proto/net.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ message Weights {
optional float min_val = 1;
optional float max_val = 2;
optional bytes params = 3;
enum Encoding {
UNKNOWN_ENCODING = 0;
LINEAR16 = 1;
FLOAT16 = 2;
BFLOAT16 = 3;
}
optional Encoding encoding = 4;
repeated uint32 dims = 5;
}

message ConvBlock {
Expand Down Expand Up @@ -362,7 +370,7 @@ message Format {
UNKNOWN = 0;
LINEAR16 = 1;
}

// Any encoding specified in a Layer overides this.
optional Encoding weights_encoding = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can actually remove this field (replace with reserved 1) — it will be just ignored parsed by code that doesn't know it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this won't break older builds. But we can certainly do that after we move it to lc0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It likely would be fine, but let's keep for now.

// If network_format is missing, it's assumed to have
// INPUT_CLASSICAL_112_PLANE / OUTPUT_CLASSICAL / NETWORK_CLASSICAL format.
Expand Down