tensor2tensor icon indicating copy to clipboard operation
tensor2tensor copied to clipboard

what's the meaning of hparam batch_size?

Open feiga opened this issue 9 years ago • 2 comments

The batch size is so large(4096). It seems that it doesn't mean the number of training samples(sentences) in one training batch?

feiga avatar Jul 03 '17 07:07 feiga

It's the total number of tokens per batch, allowing either a small number of long sentences or a larger number of short sentences in order to maximize throughput and memory utilization.

jekbradbury avatar Jul 03 '17 07:07 jekbradbury

See #17, where lukaszkaiser gave more detailed explanation.

cshanbo avatar Jul 04 '17 02:07 cshanbo