Skip to content

Commit

Permalink
Merge pull request #418 from dmholtz/daholtz/fix-runtime-error-message
Browse files Browse the repository at this point in the history
Fix runtime error message in grid.h
  • Loading branch information
Tom94 committed Mar 12, 2024
2 parents 235d1fd + fae707c commit 2ec562e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tiny-cuda-nn/encodings/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ GridEncoding<T>* create_grid_encoding_templated_2(uint32_t n_dims_to_encode, con
// case 5: return new GridEncodingTemplated<T, 5, N_FEATURES_PER_LEVEL, HASH_TYPE>{ TCNN_GRID_PARAMS };
// case 6: return new GridEncodingTemplated<T, 6, N_FEATURES_PER_LEVEL, HASH_TYPE>{ TCNN_GRID_PARAMS };
// case 7: return new GridEncodingTemplated<T, 7, N_FEATURES_PER_LEVEL, HASH_TYPE>{ 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
}
Expand Down

0 comments on commit 2ec562e

Please sign in to comment.