Update svdf test case.

PiperOrigin-RevId: 227752127
This commit is contained in:
Jian Li 2019-01-03 14:36:59 -08:00 committed by TensorFlower Gardener
parent 9d78259894
commit 000dc6e0fa

View File

@ -209,7 +209,7 @@ class HybridSVDFOpModel : public BaseSVDFOpModel {
tensor_type_ = tensor_type; tensor_type_ = tensor_type;
} }
void SetWeights(int weights_idx, std::vector<float> f) { void SetWeights(int weights_idx, const std::vector<float>& f) {
if (tensor_type_ == TensorType_UINT8) { if (tensor_type_ == TensorType_UINT8) {
SymmetricQuantizeAndPopulate(weights_idx, f); SymmetricQuantizeAndPopulate(weights_idx, f);
} else { } else {