Home
last modified time | relevance | path

Searched refs:size_str (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/python/debug/cli/
Dcommand_parser.py409 def parse_readable_size_str(size_str): argument
426 size_str = size_str.strip()
427 if size_str.endswith("B"):
428 size_str = size_str[:-1]
430 if size_str.isdigit():
431 return int(size_str)
432 elif size_str.endswith("k"):
433 return int(float(size_str[:-1]) * 1024)
434 elif size_str.endswith("M"):
435 return int(float(size_str[:-1]) * 1048576)
[all …]
/external/boringssl/src/crypto/hkdf/
Dhkdf_test.cc283 std::string size_str; in RunWycheproofTest() local
284 ASSERT_TRUE(t->GetAttribute(&size_str, "size")); in RunWycheproofTest()
286 std::vector<uint8_t> out(atoi(size_str.c_str())); in RunWycheproofTest()
/external/rust/crates/quiche/deps/boringssl/src/crypto/hkdf/
Dhkdf_test.cc283 std::string size_str; in RunWycheproofTest() local
284 ASSERT_TRUE(t->GetAttribute(&size_str, "size")); in RunWycheproofTest()
286 std::vector<uint8_t> out(atoi(size_str.c_str())); in RunWycheproofTest()
/external/bcc/src/cc/frontends/clang/
Dtp_frontend_action.cc86 auto size_str = line.substr(size_pos + 5, in _get_field_kind() local
88 int size = std::stoi(size_str, nullptr); in _get_field_kind()
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Delf_reader.py69 size_str = fd.read(10)
70 if not size_str:
74 size = int(size_str, 10)
/external/python/cpython3/Lib/importlib/
Dmetadata.py276 def make_file(name, hash=None, size_str=None): argument
279 result.size = int(size_str) if size_str else None
/external/dtc/
Dflattree.c883 uint32_t size_str = fdt32_to_cpu(fdt->size_dt_strings); in dt_from_blob() local
884 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize)) in dt_from_blob()
886 inbuf_init(&strbuf, blob + off_str, blob + off_str + size_str); in dt_from_blob()