MCPcopy Create free account
hub / github.com/pytorch/executorch / parse_value

Function parse_value

backends/arm/test/test_memory_allocator_log.py:41–42  ·  view source on GitHub ↗
(text_num: str, text_unit: Optional[str])

Source from the content-addressed store, hash-verified

39
40
41def parse_value(text_num: str, text_unit: Optional[str]) -> float:
42 return float(text_num) * unit_factor(text_unit or "")
43
44
45def parse_cond(cond: str) -> Tuple[str, float, str]:

Callers 1

check_requirementFunction · 0.85

Calls 1

unit_factorFunction · 0.85

Tested by

no test coverage detected