Skip to content

Instantly share code, notes, and snippets.

View adam-dziedzic's full-sized avatar
🎯
Focusing

Adam Dziedzic adam-dziedzic

🎯
Focusing
View GitHub Profile
@adam-dziedzic
adam-dziedzic / nvvp.md
Created June 6, 2020 04:08 — forked from sonots/nvvp.md
How to use NVIDIA profiler

Usually, located at /usr/local/cuda/bin

Non-Visual Profiler

$ nvprof python train_mnist.py

I prefer to use --print-gpu-trace.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adam-dziedzic
adam-dziedzic / git-clearHistory
Created October 21, 2020 16:16 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@adam-dziedzic
adam-dziedzic / example.py
Created April 26, 2024 12:15 — forked from Ankowa/example.py
MIA_example
import torch
from torch.utils.data import Dataset
from typing import Tuple
import numpy as np
import requests
import pandas as pd
#### LOADING THE MODEL
from torchvision.models import resnet18