| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,7 +134,8 @@ public static (Dictionary<string, VariableV1>, ITensorOrOperation[]) import_scop | |||
| 134 | 134 | } | |
| 135 | 135 | break; | |
| 136 | 136 | default: | |
| 137 | - throw new NotImplementedException("import_scoped_meta_graph_with_return_elements"); | ||
| 137 | + Console.WriteLine("import_scoped_meta_graph_with_return_elements"); | ||
| 138 | + continue; | ||
| 138 | 139 | } | |
| 139 | 140 | } | |
| 140 | 141 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -199,8 +199,8 @@ public Operation apply_gradients(Tuple<Tensor, RefVariable>[] grads_and_vars, Re | |||
| 199 | 199 | ||
| 200 | 200 | if (!tf.context.executing_eagerly()) | |
| 201 | 201 | { | |
| 202 | - var train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP) as List<object>; | ||
| 203 | - if (!train_op.Contains(apply_updates)) | ||
| 202 | + var train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP) as List<ITensorOrOperation>; | ||
| 203 | + if (train_op != null && train_op.Contains(apply_updates)) | ||
| 204 | 204 | train_op.Add(apply_updates); | |
| 205 | 205 | } | |
| 206 | 206 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments