(model, namescope=None)
| 10 | |
| 11 | |
| 12 | def _get_weights(model, namescope=None): |
| 13 | if namescope is None: |
| 14 | namescope = scope.CurrentNameScope() |
| 15 | |
| 16 | if namescope == '': |
| 17 | return model.weights[:] |
| 18 | else: |
| 19 | return [w for w in model.weights if w.GetNameScope() == namescope] |
| 20 | |
| 21 | |
| 22 | def iter(model, blob_out, **kwargs): |
no test coverage detected
searching dependent graphs…