Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15953
Fix issue reported in https://github.com/pytorch/pytorch/issues/15911
Reviewed By: csummersea
Differential Revision:
D13633256
fbshipit-source-id:
3808f100ff7dedfe5e20708e72e6081ff07eb32c
++nwords_first_line;
}
- ist = istringstream(first_line);
+ ist.str(first_line);
bool new_format = true;
int op_index, i, nbins;
float min, max;
ist >> op_index >> op_type >> i >> tensor_name >> min >> max >> nbins;
if (nwords_first_line != nbins + 7) {
- ist = istringstream(first_line);
+ ist.str(first_line);
ist >> op_index >> i >> tensor_name >> min >> max >> nbins;
if (nwords_first_line == nbins + 6) {
new_format = false;
++nwords_first_line;
}
- ist = istringstream(first_line);
+ ist.str(first_line);
bool new_format = true;
int op_index, i, nbins;
float min, max;
ist >> op_index >> op_type >> i >> tensor_name >> min >> max >> nbins;
if (nwords_first_line != nbins + 7) {
- ist = istringstream(first_line);
+ ist.str(first_line);
ist >> op_index >> i >> tensor_name >> min >> max >> nbins;
if (nwords_first_line == nbins + 6) {
new_format = false;