Revert "Fix Python 3 compatibility issues"
This commit is contained in:
parent
8c53cf8f75
commit
1689cf3a77
4 changed files with 0 additions and 20 deletions
|
@ -46,11 +46,6 @@ import sys
|
|||
import numpy as np
|
||||
from scipy import special
|
||||
|
||||
try:
|
||||
long
|
||||
except NameError:
|
||||
long = int
|
||||
|
||||
########################
|
||||
# LOG-SPACE ARITHMETIC #
|
||||
########################
|
||||
|
|
|
@ -24,11 +24,6 @@ import tensorflow as tf
|
|||
|
||||
from privacy.optimizers import dp_optimizer
|
||||
|
||||
try:
|
||||
xrange
|
||||
except NameError:
|
||||
xrange = range
|
||||
|
||||
|
||||
def loss(val0, val1):
|
||||
"""Loss function that is minimized at the mean of the input points."""
|
||||
|
|
|
@ -24,11 +24,6 @@ import tensorflow as tf
|
|||
|
||||
from privacy.optimizers import gaussian_query
|
||||
|
||||
try:
|
||||
xrange
|
||||
except NameError:
|
||||
xrange = range
|
||||
|
||||
|
||||
def _run_query(query, records):
|
||||
"""Executes query on the given set of records as a single sample.
|
||||
|
|
|
@ -30,11 +30,6 @@ nest = tf.contrib.framework.nest
|
|||
|
||||
_basic_query = gaussian_query.GaussianSumQuery(1.0, 0.0)
|
||||
|
||||
try:
|
||||
xrange
|
||||
except NameError:
|
||||
xrange = range
|
||||
|
||||
|
||||
def _run_query(query, records):
|
||||
"""Executes query on the given set of records as a single sample.
|
||||
|
|
Loading…
Reference in a new issue