From fae707c3ad7926b6ddfa7603c013e5df1e8f9a47 Mon Sep 17 00:00:00 2001 From: David Holtz <56723830+dmholtz@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:21:28 +0100 Subject: [PATCH] Fix runtime error message in grid.h --- include/tiny-cuda-nn/encodings/grid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }