Python dictionary == operator

Its interesting to note that python dictionaries support the == operator

References:

Advertisements

TensorFlow – save, restore, freeze models

It can be quite tricky getting around to deploying TF models –

In fact there are multiple ways to save/load TF models, with each serving a slightly different purpose / use-case.

  • simple_save
  • saver
  • estimator
  • keras
  • tflite

 

References:

Code:

 

Python sorted, itemgetter, stdin

I find it interesting how implementing a simple algorithm can teach you so many new things.

I was recently implementing the fractional knapsack problem

The interesting was – during implementation I got to learn some interesting things about Python.

 

Code:

 

git submodule

There are some interesting articles out there about git submodules

Tips:

  • cd into the submodule directory and do git status.
    • Many things just become clear that way!

References: