Skip to content

Commit fae707c

Browse files
authored
Fix runtime error message in grid.h
1 parent 235d1fd commit fae707c

File tree

1 file changed

+1
-1
lines changed
  • include/tiny-cuda-nn/encodings

1 file changed

+1
-1
lines changed

include/tiny-cuda-nn/encodings/grid.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ GridEncoding<T>* create_grid_encoding_templated_2(uint32_t n_dims_to_encode, con
11781178
// case 5: return new GridEncodingTemplated<T, 5, N_FEATURES_PER_LEVEL, HASH_TYPE>{ TCNN_GRID_PARAMS };
11791179
// case 6: return new GridEncodingTemplated<T, 6, N_FEATURES_PER_LEVEL, HASH_TYPE>{ TCNN_GRID_PARAMS };
11801180
// case 7: return new GridEncodingTemplated<T, 7, N_FEATURES_PER_LEVEL, HASH_TYPE>{ TCNN_GRID_PARAMS };
1181-
default: throw std::runtime_error{"GridEncoding: number of input dims must be 2 or 3."};
1181+
default: throw std::runtime_error{"GridEncoding: number of input dims must be 2, 3 or 4."};
11821182
}
11831183
#undef TCNN_GRID_PARAMS
11841184
}

0 commit comments

Comments
 (0)