diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-22 17:09:34 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-22 17:09:34 +0100 |
| commit | dc11edd306c046b9acaa7d99039c395140d400aa (patch) | |
| tree | ee66d07e2f9260d870720ddb75af88892bbe78c6 /cli/app | |
| parent | 2dcd84d8a567d1cf0164e5cabe8434e6b0b99fd9 (diff) | |
incorporate layers into live script
Diffstat (limited to 'cli/app')
| -rw-r--r-- | cli/app/search/live.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 5161a27..568267b 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -320,7 +320,7 @@ class Interpolator: op_name = 'module_apply_{}/{}'.format(gen_signature, op_name) tensor_name = 'module_apply_{}/Generator_2/split:{}'.format(gen_signature, layer_id + 1) layer_tensor = tf.get_default_graph().get_tensor_by_name(tensor_name) - layer_op = tf.get_default_graph().get_operation_by_name(layer_name) + layer_op = tf.get_default_graph().get_operation_by_name(op_name) ## unlike the encoding, here we update the layer op directly, so we don't need a temporary constant to swap # raw_layer_placeholder = tf.constant(np.zeros(raw_tensor.shape, dtype=np.float32)) |
