Back to Annotated Deep Learning Paper Implementations

භාෂාආකෘති සඳහා නියැදි ක්රම

docs/si/sampling/index.html

latest1.2 KB
Original Source

homesampling

[View code on Github](https://github.com/labmlai/annotated_deep_learning_paper_implementations/tree/master/labml_nn/sampling/ init.py)

#

භාෂාආකෘති සඳහා නියැදි ක්රම

මෙන්නමෙම නියැදි ශිල්පීය ක්රම භාවිතා කරන අත්හදා බැලීමක් .

18importtorch

#

නියැදිමූලික පන්තිය

21classSampler:

#

පිවිසුම්වලින් නියැදිය

  • logits හැඩය බෙදා හැරීමේ පිවිසුම් වේ [..., n_tokens]
25def\_\_call\_\_(self,logits:torch.Tensor)-\>torch.Tensor:

#

31raiseNotImplementedError()

Trending Research Paperslabml.ai