4 ms·
TensorFlow has a StatusOr C++ class that allows functions to return a value that can be first checked to be result.ok() (no error), and then the actual value ca
by BooneJS 7y ago
TensorFlow has a StatusOr C++ class that allows functions to return a value that can be first checked to be result.ok() (no error), and then the actual value can be unwrapped. It’s Google’s way of not using exceptions.
https://github.com/tensorflow/tensorflow/blob/38c762add3559b3292139c1d839c706a1695e2fc/tensorflow/stream_executor/lib/statusor.h https://github.com/tensorflow/tensorflow/blob/38c762add3559b...