diff --git a/include/tiny-cuda-nn/encodings/grid.h b/include/tiny-cuda-nn/encodings/grid.h index cff67359..564bc0dd 100644 --- a/include/tiny-cuda-nn/encodings/grid.h +++ b/include/tiny-cuda-nn/encodings/grid.h @@ -1178,7 +1178,7 @@ GridEncoding* create_grid_encoding_templated_2(uint32_t n_dims_to_encode, con // case 5: return new GridEncodingTemplated{ TCNN_GRID_PARAMS }; // case 6: return new GridEncodingTemplated{ TCNN_GRID_PARAMS }; // case 7: return new GridEncodingTemplated{ TCNN_GRID_PARAMS }; - default: throw std::runtime_error{"GridEncoding: number of input dims must be 2 or 3."}; + default: throw std::runtime_error{"GridEncoding: number of input dims must be 2, 3 or 4."}; } #undef TCNN_GRID_PARAMS }