Skip to content

Instantly share code, notes, and snippets.

View Neutrollized's full-sized avatar
🎯
Focusing

Glen Yu Neutrollized

🎯
Focusing
View GitHub Profile
@Neutrollized
Neutrollized / mongodb_on_wsl.md
Last active April 14, 2021 05:04
MongoDB on WSL

Installing MongoDB on WSL

Even though Mongo says it doesn't support WSL, you can still make it work. Just install MongoDB as you would any regular Ubuntu system

If you tried to start it with systemctl start mongod, it will fail with an error like:

System has not been booted with systemd as init system (PID 1). Can't operate.

Well...if SystemD doesn't work, then use SystemV!

@Neutrollized
Neutrollized / build_tensorflow2.md
Last active October 22, 2020 18:58
Compiling your own TensorFlow

Building Tensorflow from Source (TF 2.3.1, Ubuntu 20.04 & MacOS 10.15.7)

This should work for other TF versions 2.x, but mine was done for 2.3.1 specifically.

Hat tip to...

kmhoffmann's Gist about compiling TF 2.3.0 on Ubuntu 20.04 as that helped me get started with the steps I needed to start compling my own TF packaget started.

Introduction

There are many reasons to want to compile your own TF, but for me, I've been playing around with ML for a while myself and recently embarked on the TensorFlow journey. While trying to follow along to the [Predict Fuel Efficiency] regression problem, I ran into the following error: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA and after a bit of Googling, I found that the default TF package that you install with pip is built without CPU extensions and so I had to compile my own if I wan