Skip to content

Instantly share code, notes, and snippets.

View somefunAgba's full-sized avatar
💡
working on new tools

Oluwasegun Somefun somefunAgba

💡
working on new tools
View GitHub Profile
@somefunAgba
somefunAgba / vgg16.py
Created August 3, 2022 14:55 — forked from rasbt/vgg16.py
Speed comparison DataLoader vs in-memory
import time
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import datasets
from torchvision import transforms
from torch.utils.data import DataLoader
if torch.cuda.is_available():
@somefunAgba
somefunAgba / 1.Instructions.md
Created May 17, 2021 18:50 — forked from WesThorburn/1.Instructions.md
Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake

Linux: Compile C++ to WebAssembly and JavaScript using Emscripten and CMake

Download and Install Emscripten

  • My preferred installation location is /home/user
  • Get the latest sdk: git clone https://github.com/emscripten-core/emsdk.git
  • Enter the cloned directory: cd emsdk
  • Install the lastest sdk tools: ./emsdk install latest
  • Activate the latest sdk tools: ./emsdk activate latest
  • Activate path variables: source ./emsdk_env.sh
  • Configure emsdk in your bash profile by running: echo 'source "/home/user/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile