First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgradeThen, install required libraries:
| # coding: utf-8 | |
| def dummy(n): | |
| return 0 | |
| def popcnt0(n): | |
| c = 0 | |
| for i in range(64): | |
| c += (n >> i) & 1 |
| """Simple example on how to log scalars and images to tensorboard without tensor ops. | |
| License: BSD License 2.0 | |
| """ | |
| __author__ = "Michael Gygli" | |
| import tensorflow as tf | |
| from StringIO import StringIO | |
| import matplotlib.pyplot as plt | |
| import numpy as np |