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

Method Decoder

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

Source from the content-addressed store, hash-verified

114
115template<typename T>
116Decoder<T>::Decoder(size_t max_batch_size,
117 size_t head_num,
118 size_t size_per_head,
119 size_t inter_size,
120 size_t num_layer,
121 cudaStream_t stream,
122 cublasMMWrapper* cublas_wrapper,
123 IAllocator* allocator,
124 bool is_free_buffer_after_forward):
125 BaseLayer(stream, cublas_wrapper, allocator, is_free_buffer_after_forward),
126 max_batch_size_(max_batch_size),
127 head_num_(head_num),
128 size_per_head_(size_per_head),
129 inter_size_(inter_size),
130 num_layer_(num_layer),
131 hidden_units_(head_num_ * size_per_head)
132{
133 initialize();
134}
135
136template<typename T>
137Decoder<T>::Decoder(Decoder<T> const& decoder):

Callers 1

__init__Method · 0.80

Calls 1

initializeFunction · 0.85

Tested by

no test coverage detected