Skip to content

Commit

Permalink
Cast high/lo in RBF (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Aug 3, 2021
1 parent 49eac84 commit 04ca434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htf/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def __init__(self, low, high, count):
super(RBFExpansion, self).__init__(name='rbf-layer')
self.low = low
self.high = high
self.centers = tf.cast(tf.linspace(low, high, count), dtype=tf.float32)
self.centers = tf.cast(tf.linspace(
float(low), float(high), count), dtype=tf.float32)
self.gap = self.centers[1] - self.centers[0]

def get_config(self):
Expand Down

0 comments on commit 04ca434

Please sign in to comment.