Skip to content

Commit

Permalink
Suppress future warnings on tensorflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chaklim committed Nov 10, 2019
1 parent 9661105 commit 0729b4e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
10 changes: 7 additions & 3 deletions clair/model.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import tensorflow as tf
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import tensorflow as tf
from tensorflow.python.client import device_lib
from tensorflow.python.ops import array_ops

import numpy as np
import re
import multiprocessing
from sys import exit
from os.path import abspath
from argparse import ArgumentParser
from tensorflow.python.client import device_lib
from tensorflow.python.ops import array_ops
from collections import defaultdict

from clair.task.main import GT21, GENOTYPE, VARIANT_LENGTH_1, VARIANT_LENGTH_2
Expand Down
24 changes: 13 additions & 11 deletions clair/selu.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
'''
Tensorflow Implementation of the Scaled ELU function and Dropout
'''


import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import tensorflow as tf
from tensorflow.contrib import layers
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.framework import tensor_util
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import random_ops
from tensorflow.python.ops import array_ops
from tensorflow.contrib.layers.python.layers import utils
import numbers
from tensorflow.contrib import layers
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.framework import tensor_util
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import random_ops
from tensorflow.python.ops import array_ops
from tensorflow.contrib.layers.python.layers import utils
import tensorflow as tf


# (1) scale inputs to zero mean and unit variance

Expand Down

0 comments on commit 0729b4e

Please sign in to comment.