| 6 | namespace cuda { |
| 7 | |
| 8 | size_t GroupNormForwardImpl::get_workspace_in_bytes( |
| 9 | const TensorLayout&, const TensorLayout&, const TensorLayout&, |
| 10 | const TensorLayout&, const TensorLayout&, const TensorLayout& rstd) { |
| 11 | size_t N = rstd.shape[0]; |
| 12 | size_t G = rstd.shape[1]; |
| 13 | return get_workspace_bundle(N, G, rstd.dtype.size()).total_size_in_bytes(); |
| 14 | } |
| 15 | |
| 16 | WorkspaceBundle GroupNormForwardImpl::get_workspace_bundle( |
| 17 | size_t N, size_t G, size_t dtype_size, void* raw_ptr) { |
nothing calls this directly
no test coverage detected