Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add float16 encoding #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
9 changes: 8 additions & 1 deletion proto/net.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ message Weights {
optional Layer ln2_betas = 6;
}

enum Encoding {
UNKNOWN = 0;
LINEAR16 = 1;
FLOAT16 = 2;
}
optional Encoding encoding = 37;

// Input convnet.
optional ConvBlock input = 1;

Expand Down Expand Up @@ -211,7 +218,7 @@ message Format {
UNKNOWN = 0;
LINEAR16 = 1;
}

// Here for comatibility with old nets, the correct one is in Weights.
Copy link
Contributor

Choose a reason for hiding this comment

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

Small typo in compatibility

optional Encoding weights_encoding = 1;
// If network_format is missing, it's assumed to have
// INPUT_CLASSICAL_112_PLANE / OUTPUT_CLASSICAL / NETWORK_CLASSICAL format.
Expand Down