Dijkstra in Python

Dijkstra in Py3 using MinHeap and DP #JustForFun #DataStructures #DynamicProgramming from heapq import heappop, heappush def dijkstra(graph, start_node)…

Using PyTorch with GPU in Google Colab

Google Colab now lets you use GPUs for Deep Learning. This post outlines the steps needed to enable GPU and install PyTorch in Google Colab — and ends with a quick PyTorch tutorial (with Colab's GPU).…