message: Mark QuantizationSpec methods that don't change member data as constant
diff: @@ -84,7 +84,7 @@ struct QuantizationSpecs {
  bool RunWeightQuantization() const { return weight_quantization; }
  // Whether this inference type represents a signed storage type.
  - bool IsSignedInferenceType() {
  + bool IsSignedInferenceType() const {
  switch (inference_type) {
  case tensorflow::DT_QUINT8:
  case tensorflow::DT_QUINT16:
  @@ -96,7 +96,7 @@ struct QuantizationSpecs {
  // Gets the width of this quantization type. Returns 0 if it isn't a
  // quantization type.
  - int64_t GetQuantizationTypeWidth() {
  + int64_t GetQuantizationTypeWidth() const {
  switch (inference_type) {
  case tensorflow::DT_QINT8:
  case tensorflow::DT_QUINT8:
  