MCPcopy Create free account
hub / github.com/NVlabs/tiny-cuda-nn / set_alignment

Method set_alignment

include/tiny-cuda-nn/encoding.h:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 std::vector<std::pair<uint32_t, uint32_t>> layer_sizes() const override { return {}; }
69
70 void set_alignment(uint32_t alignment) {
71 this->set_padded_output_width(next_multiple(this->output_width(), lcm(alignment, this->required_output_alignment())));
72 }
73};
74
75template <typename T>

Callers 2

CompositeEncodingMethod · 0.80

Calls 5

next_multipleFunction · 0.85
lcmFunction · 0.85
output_widthMethod · 0.45

Tested by

no test coverage detected