| 3 | |
| 4 | namespace megdnn { |
| 5 | void NonZero::check_exec( |
| 6 | const TensorLayout& src, const TensorLayout& dst, size_t workspace_in_bytes) { |
| 7 | dst.dtype.assert_is(infer_type(src.dtype)); |
| 8 | |
| 9 | if (!src.is_empty()) |
| 10 | megdnn_assert(src.is_physical_contiguous()); |
| 11 | auto require_workspace_in_bytes = get_workspace_in_bytes(src); |
| 12 | megdnn_assert(workspace_in_bytes >= require_workspace_in_bytes); |
| 13 | } |
| 14 | |
| 15 | DType NonZero::infer_type(DType /*input*/) { |
| 16 | return dtype::Int32(); |
nothing calls this directly
no test coverage detected