internal change

PiperOrigin-RevId: 233093203
This commit is contained in:
A. Unique TensorFlower 2019-02-08 11:16:44 -08:00
parent d435fcbf9a
commit 36d9959c19
11 changed files with 19 additions and 19 deletions

View file

@ -37,8 +37,8 @@ import math
from absl import app from absl import app
from absl import flags from absl import flags
from privacy.analysis.rdp_accountant import compute_rdp from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_rdp
from privacy.analysis.rdp_accountant import get_privacy_spent from tensorflow_privacy.privacy.analysis.rdp_accountant import get_privacy_spent
FLAGS = flags.FLAGS FLAGS = flags.FLAGS

View file

@ -25,7 +25,7 @@ from absl.testing import parameterized
import mpmath as mp import mpmath as mp
import numpy as np import numpy as np
from privacy.analysis import rdp_accountant from tensorflow_privacy.privacy.analysis import rdp_accountant
class TestGaussianMoments(parameterized.TestCase): class TestGaussianMoments(parameterized.TestCase):

View file

@ -19,7 +19,7 @@ from __future__ import print_function
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import gaussian_query from tensorflow_privacy.privacy.optimizers import gaussian_query
def make_optimizer_class(cls): def make_optimizer_class(cls):

View file

@ -22,8 +22,8 @@ import mock
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import dp_optimizer from tensorflow_privacy.privacy.optimizers import dp_optimizer
from privacy.optimizers import gaussian_query from tensorflow_privacy.privacy.optimizers import gaussian_query
def loss(val0, val1): def loss(val0, val1):

View file

@ -23,7 +23,7 @@ import collections
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import dp_query from tensorflow_privacy.privacy.optimizers import dp_query
nest = tf.contrib.framework.nest nest = tf.contrib.framework.nest

View file

@ -22,8 +22,8 @@ from absl.testing import parameterized
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import gaussian_query from tensorflow_privacy.privacy.optimizers import gaussian_query
from privacy.optimizers import test_utils from tensorflow_privacy.privacy.optimizers import test_utils
class GaussianQueryTest(tf.test.TestCase, parameterized.TestCase): class GaussianQueryTest(tf.test.TestCase, parameterized.TestCase):

View file

@ -22,7 +22,7 @@ from __future__ import print_function
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import dp_query from tensorflow_privacy.privacy.optimizers import dp_query
nest = tf.contrib.framework.nest nest = tf.contrib.framework.nest

View file

@ -23,9 +23,9 @@ from absl.testing import parameterized
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import gaussian_query from tensorflow_privacy.privacy.optimizers import gaussian_query
from privacy.optimizers import nested_query from tensorflow_privacy.privacy.optimizers import nested_query
from privacy.optimizers import test_utils from tensorflow_privacy.privacy.optimizers import test_utils
nest = tf.contrib.framework.nest nest = tf.contrib.framework.nest

View file

@ -19,7 +19,7 @@ from __future__ import print_function
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import dp_query from tensorflow_privacy.privacy.optimizers import dp_query
nest = tf.contrib.framework.nest nest = tf.contrib.framework.nest

View file

@ -21,8 +21,8 @@ from __future__ import print_function
from absl.testing import parameterized from absl.testing import parameterized
import tensorflow as tf import tensorflow as tf
from privacy.optimizers import no_privacy_query from tensorflow_privacy.privacy.optimizers import no_privacy_query
from privacy.optimizers import test_utils from tensorflow_privacy.privacy.optimizers import test_utils
class NoPrivacyQueryTest(tf.test.TestCase, parameterized.TestCase): class NoPrivacyQueryTest(tf.test.TestCase, parameterized.TestCase):

View file

@ -21,9 +21,9 @@ from __future__ import print_function
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from privacy.analysis.rdp_accountant import compute_rdp from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_rdp
from privacy.analysis.rdp_accountant import get_privacy_spent from tensorflow_privacy.privacy.analysis.rdp_accountant import get_privacy_spent
from privacy.optimizers import dp_optimizer from tensorflow_privacy.privacy.optimizers import dp_optimizer
tf.flags.DEFINE_boolean('dpsgd', True, 'If True, train with DP-SGD. If False, ' tf.flags.DEFINE_boolean('dpsgd', True, 'If True, train with DP-SGD. If False, '
'train with vanilla SGD.') 'train with vanilla SGD.')