MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / freeBuffer

Method freeBuffer

src/fastertransformer/models/decoder/Decoder.cc:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92template<typename T>
93void Decoder<T>::freeBuffer()
94{
95 allocator_->free((void**)(&decoder_normed_input_));
96 allocator_->free((void**)(&self_attn_output_));
97 allocator_->free((void**)(&normed_self_attn_output_));
98 allocator_->free((void**)(&cross_attn_output_));
99 allocator_->free((void**)(&normed_cross_attn_output_));
100 allocator_->free((void**)(&decoder_layer_output_));
101}
102
103template<typename T>
104bool Decoder<T>::isValidBatchSize(size_t batch_size)

Callers

nothing calls this directly

Calls 1

freeMethod · 0.45

Tested by

no test coverage detected