diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-22 17:15:41 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-22 17:15:41 +0100 |
| commit | b2f9be92ecdd92e59a3a97ed13dad3d1b317fe0b (patch) | |
| tree | 5db21ef0d509cef286cff5ca7e529a076cdb8a11 /cli/app | |
| parent | 4e9e37fad40c9a7a20d8c6f8e764d7f9755e5058 (diff) | |
incorporate layers into live script
Diffstat (limited to 'cli/app')
| -rw-r--r-- | cli/app/search/live.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 7dea257..a003350 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -318,9 +318,10 @@ class Interpolator: op_input_index = 1 split_shape = [1, 16] for op_name, layer_id in zip(layer_op_names, range(7)): - 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) + + op_name = 'module_apply_{}/{}'.format(gen_signature, op_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 |
