diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 20:17:41 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 20:17:41 +0100 |
| commit | fdb3a1dc3c2d2529d1dd6faeebc853b04159dcdd (patch) | |
| tree | 57232910ba5780541e6316d6a8ff66f27a7c75f3 /inversion/live.py | |
| parent | 4ac5cb4ab9cd3b1b2087afa6bb2ff938a52dce1c (diff) | |
redo lerping and sineing
Diffstat (limited to 'inversion/live.py')
| -rw-r--r-- | inversion/live.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inversion/live.py b/inversion/live.py index a04799e..3cb662e 100644 --- a/inversion/live.py +++ b/inversion/live.py @@ -139,7 +139,7 @@ class InterpolatorParam: self.scalar = shape == () self.shape = shape self.type = type - self.value = value if type != float else np.zeros(shape) + self.value = (value or 0.0) if type == float else np.zeros(shape) self.variable = tf.placeholder(dtype=dtype, shape=shape) interpolator.opts[name] = self |
