(self, param_name, init_net, shape)
| 43 | ''' |
| 44 | |
| 45 | def create_param(self, param_name, init_net, shape): |
| 46 | if isinstance(param_name, BlobReference): |
| 47 | param = BlobReference(str(param_name), init_net) |
| 48 | elif isinstance(param_name, str): |
| 49 | param = ScopedBlobReference(param_name, init_net) |
| 50 | else: |
| 51 | raise TypeError("Unsupported type for param_name") |
| 52 | # TODO(amalevich): Add operator that will check param in the workspace |
| 53 | return ParameterInfo( |
| 54 | param_id=None, |
| 55 | param=param, |
| 56 | shape=shape, |
| 57 | ) |
| 58 | |
| 59 | |
| 60 | class PseudoFP16Initializer(Initializer): |
nothing calls this directly
no test coverage detected