Skip to content

Instantly share code, notes, and snippets.

View ChaiBapchya's full-sized avatar
💭
Back to Work

Chaitanya Prakash Bapat ChaiBapchya

💭
Back to Work
View GitHub Profile
[ERROR] Runtime.ImportModuleError: Unable to import module 'pr_notifier_chime_bot': No module named 'requests'
Serverless Error ---------------------------------------
 
  Serverless plugin "serverless-python-requirements" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com
 
@ChaiBapchya
ChaiBapchya / docker_serverless_error.md
Created May 10, 2020 04:27
docker_serverless_error
Error --------------------------------------------------
 
  Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
  See 'docker run --help'.
  
      at dockerCommand (/Users/bapac/workspace/pr_notifier_lambda/node_modules/serverless-python-requirements/lib/docker.js:20:11)
      at getDockerUid (/Users/bapac/workspace/pr_notifier_lambda/node_modules/serverless-python-requirements/lib/docker.js:172:14)
      at installRequirements (/Users/bapac/workspace/pr_notifier_lambda/node_modules/serverless-python-requirements/lib/pip.js:259:28)
      at installRequirementsIfNeeded (/Users/bapac/workspace/pr_notifier_lambda/node_modules/serverless-python-requirements/lib/pip.js:556:3)
@ChaiBapchya
ChaiBapchya / batch_dot_dot_fc.md
Created May 5, 2020 02:30
OpPerf results [Imperative mode]
Operator LHS RHS MKL Default MKL Workaround
Dot (4, 512, 512) (4, 512, 512) 15.1122 4.1254
(5, 512, 512) (5, 512, 512) 38.1678 7.5323
(5, 512, 1536 (5, 512, 1536) 21.6601 19.2503
(5, 512, 2048) (5, 512, 2048) 29.0369 23.7432
(5, 2048, 512) (5, 2048, 512) 167.5528 129.9957
Batch_dot (4, 512, 512) (4, 512, 512) 1.7898 1.5445
(5, 512, 512) (5, 512, 512) 2.2457 1.9361
@ChaiBapchya
ChaiBapchya / benchmark_intel_mkl.py
Last active May 15, 2020 22:17
Script for benchmarking dot,batch_dot and fully_connected with OpPerf
import mxnet as mx
from mxnet import nd
from benchmark.opperf.utils.benchmark_utils import run_performance_test
import os
#export MKL_VERBOSE=1
#export MKLDNN_VERBOSE=1
os.environ["MKL_VERBOSE"]=1
os.environ["MKLDNN_VERBOSE"]=1
os.environ["OMP_NUM_THREADS"]="4"
#print version
@ChaiBapchya
ChaiBapchya / generate_ssh
Created April 29, 2020 17:44
Generate ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/src/id_rsa
@ChaiBapchya
ChaiBapchya / cron_rebase.sh
Last active May 1, 2020 01:38
Shell Script to rebase master & update the feature branch
#!/bin/bash
export GIT_SSH_COMMAND="ssh -i /home/ubuntu/src/id_rsa"
echo "Entering mxnet repo"
cd /home/ubuntu/src/incubator-mxnet
echo "checkout master"
git checkout master
echo "fetch upstream master"
git fetch upstream master
@ChaiBapchya
ChaiBapchya / rebase_master
Created April 4, 2020 03:48
Commands to rebase master for MXNet
git remote add upstream https://github.com/apache/incubator-mxnet
git checkout master
git fetch upstream master
git merge upstream/master
git push origin master
git checkout <branchname>
git rebase master
git push -f origin <branchname>
@ChaiBapchya
ChaiBapchya / rebase_master
Created April 4, 2020 03:48
Commands to rebase master for MXNet
git remote add upstream https://github.com/apache/incubator-mxnet
git checkout master
git fetch upstream master
git merge upstream/master
git push origin master
git checkout <branchname>
git rebase master
git push -f origin <branchname>

Runtime Features

  1. BLAS_APPLE : ✖ BLAS_APPLE
  2. BLAS_ATLAS : ✖ BLAS_ATLAS
  3. BLAS_MKL : ✖ BLAS_MKL
  4. BLAS_OPEN : ✔ BLAS_OPEN
  5. CAFFE : ✖ CAFFE
  6. CPU_AVX : ✔ CPU_AVX
  7. CPU_AVX2 : ✖ CPU_AVX2
  8. CPU_SSE : ✔ CPU_SSE
  9. CPU_SSE2 : ✔ CPU_SSE2