You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
720 B

6 years ago
  1. syntax = "proto2";
  2. package object_detection.protos;
  3. // Message to configure graph rewriter for the tf graph.
  4. message GraphRewriter {
  5. optional Quantization quantization = 1;
  6. }
  7. // Message for quantization options. See
  8. // tensorflow/contrib/quantize/python/quantize.py for details.
  9. message Quantization {
  10. // Number of steps to delay before quantization takes effect during training.
  11. optional int32 delay = 1 [default = 500000];
  12. // Number of bits to use for quantizing weights.
  13. // Only 8 bit is supported for now.
  14. optional int32 weight_bits = 2 [default = 8];
  15. // Number of bits to use for quantizing activations.
  16. // Only 8 bit is supported for now.
  17. optional int32 activation_bits = 3 [default = 8];
  18. }