Returns the params in current namescope
(self, namescope=None, top_scope=False)
| 280 | return namescope + scope._NAMESCOPE_SEPARATOR |
| 281 | |
| 282 | def GetParams(self, namescope=None, top_scope=False): |
| 283 | ''' |
| 284 | Returns the params in current namescope |
| 285 | ''' |
| 286 | namescope = ModelHelper._NormalizeNamescope(namescope) |
| 287 | |
| 288 | if namescope == '': |
| 289 | return self.params[:] |
| 290 | else: |
| 291 | return [p for p in self.params if |
| 292 | p.GetNameScope().startswith(namescope)] |
| 293 | |
| 294 | def Proto(self): |
| 295 | return self.net.Proto() |