MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SafeStringToNumeric

Function SafeStringToNumeric

tensorflow/core/lib/strings/numbers.h:154–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152// Values may be rounded on over- and underflow.
153template <typename T>
154bool SafeStringToNumeric(StringPiece s, T* value) {
155 return ProtoParseNumeric(s, value);
156}
157
158// Converts from an int64 to a human readable string representing the
159// same number, using decimal powers. e.g. 1200000 -> "1.20M".

Callers

nothing calls this directly

Calls 1

ProtoParseNumericFunction · 0.85

Tested by

no test coverage detected