| 375 | } |
| 376 | |
| 377 | bool is_tensor(py::handle arg) { |
| 378 | return bool(TensorWrapper::try_cast(arg.ptr())); |
| 379 | } |
| 380 | |
| 381 | bool is_py_sequence(py::handle arg) { |
| 382 | if (PyArray_Check(arg.ptr()) || TensorWrapper::try_cast(arg.ptr())) { |
no test coverage detected