Home
last modified time | relevance | path

Searched refs:bytes_to_readable_str (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/debug/cli/
Dcli_shared_test.py36 self.assertEqual(str(None), cli_shared.bytes_to_readable_str(None))
39 self.assertEqual("0", cli_shared.bytes_to_readable_str(0))
40 self.assertEqual("500", cli_shared.bytes_to_readable_str(500))
41 self.assertEqual("1023", cli_shared.bytes_to_readable_str(1023))
44 self.assertEqual("1.00k", cli_shared.bytes_to_readable_str(1024))
45 self.assertEqual("2.40k", cli_shared.bytes_to_readable_str(int(1024 * 2.4)))
46 self.assertEqual("1023.00k", cli_shared.bytes_to_readable_str(1024 * 1023))
49 self.assertEqual("1.00M", cli_shared.bytes_to_readable_str(1024**2))
51 cli_shared.bytes_to_readable_str(int(1024**2 * 2.4)))
53 cli_shared.bytes_to_readable_str(1024**2 * 1023))
[all …]
Dcli_shared.py55 def bytes_to_readable_str(num_bytes, include_b=False): function
199 line += " (%sB)" % bytes_to_readable_str(gfile.Stat(write_path).length)
Danalyzer_cli.py569 dump_size_str = cli_shared.bytes_to_readable_str(dump.dump_size_bytes)
625 dump_size_str = cli_shared.bytes_to_readable_str(dump.dump_size_bytes)