Fabrizio Damicelli
Fabrizio Damicelli
  • 5
  • 3 898
PyTorch DataLoader: Understand and implement custom collate function
Understand DataLoader's inner workings and bring your data pipeline to the next level with this gentle introduction to the useful `collate_fn` in PyTorch DataLoader. We will work through a concrete example of dynamic collate to make dataloading more efficient.
Code: fabridamicelli.github.io/blog/pytorch/python/data/neural-nets/2023/09/13/pytorch-dataloader-collate.html
------------- CONNECT ------------------
Twitter: fabridamicelli
Blog: fabridamicelli.github.io
GitHub: github.com/fabridamicelli
Переглядів: 2 580

Відео

Python more-itertools unique_everseen
Переглядів 1882 роки тому
A quick example of how to use more_itertools.unique_everseen in Python. more-itertools documentation: pypi.org/project/more-itertools/ CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli
Python collections.ChainMap
Переглядів 4212 роки тому
The built-in collections module is a handy bag of tools to be aware of. Here we explore collections.ChainMap, an elegant solution to efficiently carry out a look up over more than one dictionary. CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli
Merging Python dictionaries - a functional take
Переглядів 1073 роки тому
An elegant way to merge *many* dictionaries in Python by leveraging some functional tools. CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli
Python starmap (itertools): A short and easy intro
Переглядів 6093 роки тому
A quick introduction to itertools.starmap in Python. Blogpost: fabridamicelli.github.io/blog/python/itertools/functional-programming/python-standard-library/2021/09/18/starmap.html Official documentation: docs.python.org/3/library/itertools.html#itertools.starmap CONNECT Twitter: fabridamicelli Blog: fabridamicelli.github.io GitHub: github.com/fabridamicelli/

КОМЕНТАРІ

  • @ansonlau7040
    @ansonlau7040 24 дні тому

    Great work! I appreciate the clear explanation.😇

  • @aseefi
    @aseefi 5 місяців тому

    Thanks! This was the exact problem I wanted to solve.

  • @habibbayo3327
    @habibbayo3327 6 місяців тому

    Nice job !

  • @osogrande4999
    @osogrande4999 Рік тому

    Good clear explanation!

  • @Vijay-Yarramsetty
    @Vijay-Yarramsetty 2 роки тому

    came here from Twitter. Good work. Thanks, It really helped me in understanding the fundamentals better.

    • @fabridamicelli
      @fabridamicelli 2 роки тому

      Hi there, thanks for your feedback, glad you learnt something :)