| 37 | return sharedX(self.scale * q[:shape[0], :shape[1]], name=name) |
| 38 | |
| 39 | class Frob(object): |
| 40 | |
| 41 | def __init__(self): |
| 42 | pass |
| 43 | |
| 44 | def __call__(self, shape, name=None): |
| 45 | r = np_rng.normal(loc=0, scale=0.01, size=shape) |
| 46 | r = r/np.sqrt(np.sum(r**2))*np.sqrt(shape[1]) |
| 47 | return sharedX(r, name=name) |
| 48 | |
| 49 | class Constant(object): |
| 50 |
nothing calls this directly
no outgoing calls
no test coverage detected