| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8b53eb3 commit 6e6648b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ public Tensor[] TFE_ExecuteCancelable(Context ctx, | |||
| 42 | 42 | object[] attrs, | |
| 43 | 43 | int num_outputs) | |
| 44 | 44 | { | |
| 45 | - var status = tf.Status; | ||
| 45 | + var status = new Status(); | ||
| 46 | 46 | var op = GetOp(ctx, op_name, status); | |
| 47 | 47 | c_api.TFE_OpSetDevice(op, device_name, status); | |
| 48 | 48 | if (status.ok()) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,9 +138,6 @@ public void clear_session() | |||
| 138 | 138 | ops.set_default_session(tf.Session(ops.get_default_graph())); | |
| 139 | 139 | tf.enable_eager_execution(); | |
| 140 | 140 | tf.Runner.ClearEagerOperationMap(); | |
| 141 | - | ||
| 142 | - GC.Collect(); | ||
| 143 | - GC.WaitForPendingFinalizers(); | ||
| 144 | 141 | } | |
| 145 | 142 | public void manual_variable_initialization(bool value) | |
| 146 | 143 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments