Skip to content

Commit

Permalink
adding imports from future
Browse files Browse the repository at this point in the history
  • Loading branch information
dantkz committed Oct 10, 2017
1 parent 65cf4c9 commit 911d721
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion average_gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import, division, print_function
import tensorflow as tf

def average_gradients(tower_grads):
Expand All @@ -38,4 +39,4 @@ def average_gradients(tower_grads):
v = grad_and_vars[0][1]
grad_and_var = (grad, v)
average_grads.append(grad_and_var)
return average_grads
return average_grads
4 changes: 2 additions & 2 deletions bilinear_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
# ==============================================================================


from __future__ import absolute_import, division, print_function
import tensorflow as tf

def bilinear_sampler_1d_h(input_images, x_offset, wrap_mode='border', name='bilinear_sampler', **kwargs):
Expand Down Expand Up @@ -100,4 +100,4 @@ def _transform(input_images, x_offset):
_wrap_mode = wrap_mode

output = _transform(input_images, x_offset)
return output
return output
1 change: 1 addition & 0 deletions monodepth_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"""Monodepth data loader.
"""

from __future__ import absolute_import, division, print_function
import tensorflow as tf

def string_length_tf(t):
Expand Down
2 changes: 1 addition & 1 deletion monodepth_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# For any other use of the software not covered by the UCLB ACP-A Licence,
# please contact info@uclb.com

from __future__ import division
from __future__ import absolute_import, division, print_function

# only keep warnings and errors
import os
Expand Down
1 change: 1 addition & 0 deletions monodepth_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
http://visual.cs.ucl.ac.uk/pubs/monoDepth/
"""

from __future__ import absolute_import, division, print_function
from collections import namedtuple

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion monodepth_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# For any other use of the software not covered by the UCLB ACP-A Licence,
# please contact info@uclb.com

from __future__ import division
from __future__ import absolute_import, division, print_function

# only keep warnings and errors
import os
Expand Down

0 comments on commit 911d721

Please sign in to comment.