Skip to content

Instantly share code, notes, and snippets.

View ShivamPR21's full-sized avatar
💭
Navigating

Shivam Pandey ShivamPR21

💭
Navigating
View GitHub Profile
@ShivamPR21
ShivamPR21 / toml-merge.py
Created October 16, 2023 22:40
Merge Two TOML configuration files
import tomli
import tomli_w
import argparse
import os
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("file1")
parser.add_argument("file2")
parser.add_argument("out_file")
@ShivamPR21
ShivamPR21 / ddp_notes.md
Created April 19, 2022 18:03 — forked from TengdaHan/ddp_notes.md
Multi-node-training on slurm with PyTorch

Multi-node-training on slurm with PyTorch

What's this?

  • A simple note for how to start multi-node-training on slurm scheduler with PyTorch.
  • Useful especially when scheduler is too busy that you cannot get multiple GPUs allocated, or you need more than 4 GPUs for a single job.
  • Requirement: Have to use PyTorch DistributedDataParallel(DDP) for this purpose.
  • Warning: might need to re-factor your own code.
  • Warning: might be secretly condemned by your colleagues because using too many GPUs.

Autonomous Systems Interview Preparations

This document contains some interview questions as provided in Udacity's Robotics Engineer Nanodegree program.

Project Instructions

Role Selection

It's time for you to practice your interviewing skills! Over the next several pages, you'll see that we have specific roles in Autonomous Systems, just like the videos you watched before:

@ShivamPR21
ShivamPR21 / read-csv-to-eigen.cpp
Created March 26, 2020 23:40
Reads a CSV file into a Eigen Matrix
#include <iostream>
#include <fstream>
#include <Eigen/Dense>
Eigen::MatrixXd readCSV(std::string file, int rows, int cols) {
std::ifstream in(file);
std::string line;