Skip to content

Commit

Permalink
Merge pull request #14 from choas/master
Browse files Browse the repository at this point in the history
Change imports to use sonnet; same as most other files
  • Loading branch information
sergomezcol authored Apr 10, 2017
2 parents 7ebea07 + ba7c69e commit a465d37
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
from __future__ import print_function

import numpy as np
import sonnet as snt
import tensorflow as tf

import nn


class Clamp(nn.AbstractModule):
class Clamp(snt.AbstractModule):

def __init__(self, min_value=None, max_value=None, name="clamp"):
super(Clamp, self).__init__(name=name)
Expand All @@ -40,7 +39,7 @@ def _build(self, inputs):
return output


class LogAndSign(nn.AbstractModule):
class LogAndSign(snt.AbstractModule):
"""Log and sign preprocessing.
As described in https://arxiv.org/pdf/1606.04474v1.pdf (Appendix A).
Expand Down

0 comments on commit a465d37

Please sign in to comment.