| 2026 | } |
| 2027 | |
| 2028 | string FormattedNumber(int64 x) { |
| 2029 | const int64 million = 1000000; |
| 2030 | const int64 billion = 1000000000; |
| 2031 | if (x < 10000) { |
| 2032 | return toco::port::StringF("%d ", x); |
| 2033 | } else if (x < billion) { |
| 2034 | return toco::port::StringF("%.3f M", static_cast<double>(x) / million); |
| 2035 | } else { |
| 2036 | return toco::port::StringF("%.3f G", static_cast<double>(x) / billion); |
| 2037 | } |
| 2038 | } |
| 2039 | |
| 2040 | void GetShuffleShape(AxesOrder input_axes_order, AxesOrder output_axes_order, |
| 2041 | std::vector<int>* shuffle) { |
no test coverage detected