Skip to content

Commit

Permalink
Change imports to use sonnet; same as most other files
Browse files Browse the repository at this point in the history
  • Loading branch information
choas committed Apr 9, 2017
1 parent 7ebea07 commit ba7c69e
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 ba7c69e

Please sign in to comment.