From c9e65e5898c01bc5c6b392bb2375efc2346c6f42 Mon Sep 17 00:00:00 2001 From: rink <rink@ssec.wisc.edu> Date: Mon, 28 Sep 2020 11:28:48 -0500 Subject: [PATCH] minor --- modules/util/setup.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/util/setup.py b/modules/util/setup.py index 11660609..9706433b 100644 --- a/modules/util/setup.py +++ b/modules/util/setup.py @@ -3,22 +3,18 @@ from __future__ import division, print_function, unicode_literals # Common imports import numpy as np -import os -import glob -import imageio -import h5py -from scipy import misc from pathlib import Path + # to make this notebook's output stable across runs def reset_graph(seed=42): tf.compat.v1.reset_default_graph() tf.compat.v1.set_random_seed(seed) np.random.seed(seed) + # To plot pretty figures -import matplotlib import matplotlib.pyplot as plt plt.rcParams['axes.labelsize'] = 14 plt.rcParams['xtick.labelsize'] = 12 @@ -44,6 +40,4 @@ root_cachedir = home_dir+'/cache' cachepath = "{}/run-{}".format(root_cachedir, now) cachepath = cachepath+'.pkl' -from importlib import reload - gpu_devices = {0: '/device:GPU:0', 1: '/device:GPU:1', 2: '/device:GPU:2'} -- GitLab