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