Exception thrown on format errors instead of crashing via assert. Caught at the public API level to fall back to returning the raw format string, so that a wrong PADDLE_ENFORCE format never causes an abort.
| 145 | // Caught at the public API level to fall back to returning the raw format |
| 146 | // string, so that a wrong PADDLE_ENFORCE format never causes an abort. |
| 147 | struct FormatError {}; |
| 148 | |
| 149 | // Test whether type T1 is convertible to type T2 |
| 150 | template <typename T1, typename T2> |
no outgoing calls
no test coverage detected