Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ncp/models/bbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

from tensorflow_probability import distributions as tfd
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

from ncp import tools

Expand Down
3 changes: 2 additions & 1 deletion ncp/models/bbb_ncp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

from tensorflow_probability import distributions as tfd
import numpy as np
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import tensorflow_probability as tfp

from ncp import tools
Expand Down
3 changes: 2 additions & 1 deletion ncp/models/det.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.

from tensorflow_probability import distributions as tfd
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

from ncp import tools

Expand Down
3 changes: 2 additions & 1 deletion ncp/models/det_mix_ncp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.

from tensorflow_probability import distributions as tfd
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

from ncp import tools

Expand Down
3 changes: 2 additions & 1 deletion ncp/scripts/flights_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
mpl.use('Agg')
import matplotlib.pyplot as plt
import ruamel.yaml as yaml
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

from ncp import datasets
from ncp import models
Expand Down
3 changes: 2 additions & 1 deletion ncp/scripts/toy_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
mpl.use('Agg')
import matplotlib.pyplot as plt
import ruamel.yaml as yaml
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

from ncp import datasets
from ncp import models
Expand Down
3 changes: 2 additions & 1 deletion ncp/tools/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

import numpy as np
import scipy.stats
import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

from ncp.tools import attrdict
from ncp.tools import plotting
Expand Down