Skip to content

Commit f81205f

Browse files
authored
Merge pull request #90 from amcadmus/devel
test with tf2.0. fix warnings. add ignores
2 parents 9152428 + f28c1a4 commit f81205f

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
*.gz
1313
*.bz2
1414
*.pyc
15+
tmp*
1516
CMakeCache.txt
1617
CMakeFiles
1718
*.bk
1819
build
1920
_skbuild
20-
deepmd.egg-info
21+
deepmd_kit.egg-info/
2122
dist
22-
23+
.eggs
24+
_version.py
25+
venv*

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ matrix:
5151
- CC=gcc-8
5252
- CXX=g++-8
5353
- TENSORFLOW_VERSION=1.14
54+
- python: 3.7
55+
env:
56+
- CC=gcc-5
57+
- CXX=g++-5
58+
- TENSORFLOW_VERSION=2.0
59+
- python: 3.7
60+
env:
61+
- CC=gcc-8
62+
- CXX=g++-8
63+
- TENSORFLOW_VERSION=2.0
5464
before_install:
5565
- pip install --upgrade pip
5666
- pip install --upgrade setuptools

examples/water/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data.*
2+
lcurve*ref
3+
tab.xvg

source/tests/test_tab_nonsmth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ def __init__ (self,
5050
tab_info.shape,
5151
dtype = tf.float64,
5252
trainable = False,
53-
initializer = tf.constant_initializer(tab_info, dtype = tf.float64))
53+
initializer = tf.constant_initializer(tab_info))
5454
self.tab_data = tf.get_variable('t_tab_data',
5555
tab_data.shape,
5656
dtype = tf.float64,
5757
trainable = False,
58-
initializer = tf.constant_initializer(tab_data, dtype = tf.float64))
58+
initializer = tf.constant_initializer(tab_data))
5959

6060
def comp_interpl_ef (self,
6161
dcoord,

source/tests/test_tab_smooth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ def __init__ (self,
5050
tab_info.shape,
5151
dtype = tf.float64,
5252
trainable = False,
53-
initializer = tf.constant_initializer(tab_info, dtype = tf.float64))
53+
initializer = tf.constant_initializer(tab_info))
5454
self.tab_data = tf.get_variable('t_tab_data',
5555
tab_data.shape,
5656
dtype = tf.float64,
5757
trainable = False,
58-
initializer = tf.constant_initializer(tab_data, dtype = tf.float64))
58+
initializer = tf.constant_initializer(tab_data))
5959

6060
def comp_ef (self,
6161
dcoord,

0 commit comments

Comments
 (0)