Numba Explained in 30 Minutes - The Python and Numpy Compiler

Опубликовано: 10 Ноябрь 2022
на канале: TechCode
12,983
231

Learn about Numba - the Python and Numpy compiler. This tutorial will explain how Numba works, and when and how to use it for numerical algorithms, focusing on how to get very good performance on the CPU.
Make Python code 1000x Faster with Numba
☞ https://morioh.com/p/08e7ea1e28f4
Python Programming Tutorial - Full Course for Beginners
☞ https://morioh.com/p/c8ebeaa911f9
Python NumPy Tutorial for Beginners
☞ https://morioh.com/p/e4c29fa0ad65

Do you have numerical code written in Python and Numpy? Do you wish it ran faster, using the full potential of your CPU?

Then you should try Numba, a JIT compiler that translates a subset of Python and Numpy code into fast machine code.

This talk will explain how Numba works, and when and how to use it for numerical algorithms, focusing on how to get very good performance on the CPU.

To understand this talk, only a basic knowledge of Python and Numpy is needed.

You will learn how Python compiles functions to bytecode and how Numba compiles bytecode to machine code. Why algorithms implemented using Numpy sometimes don't yield great performance, and how to do better using Numba. You will learn about the @numba.jit and @numba.vectorize decorators and how to create functions that use the CPU well by using e.g. multi-threading (several CPU cores), vector instructions (single instruction multiple data) and fast math (trade float accuracy for speed).

You will also learn when it does and doesn't make sense to use Numba, by contrasting it briefly with some other options for high-performance computing from Python: PyPy, C, C++, Cython, Numexpr, Dask, PyTorch, Tensorflow and Google JAX

#Numba #Python #Morioh

PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed).
Link:    • Christoph Deil - Understanding Numba ...  

Note: If you have any copyright issue with the content used in our channel or you find something that belongs to you, before you claim it to Youtube, SEND US A MESSAGE and the respective content will be DELETED right away. Thanks for understanding.

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: https://www.moteefe.com/store/developer?cp...
🌎 Social Network for Developers: https://morioh.com/


Смотрите видео Numba Explained in 30 Minutes - The Python and Numpy Compiler онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TechCode 10 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12,983 раз и оно понравилось 231 людям.