(x)
| 18 | |
| 19 | |
| 20 | def safe_numpy(x): |
| 21 | # A very safe method to make sure that Apple/Mac works |
| 22 | y = x |
| 23 | |
| 24 | # below is very boring but do not change these. If you change these Apple or Mac may fail. |
| 25 | y = y.copy() |
| 26 | y = np.ascontiguousarray(y) |
| 27 | y = y.copy() |
| 28 | return y |
| 29 | |
| 30 | |
| 31 | def high_quality_resize(x, size): |
no outgoing calls
no test coverage detected