randomisable transform for testing.
| 34 | |
| 35 | |
| 36 | class RandTest(RandomizableTransform): |
| 37 | """ |
| 38 | randomisable transform for testing. |
| 39 | """ |
| 40 | |
| 41 | def randomize(self, data=None): |
| 42 | self._a = self.R.random() |
| 43 | |
| 44 | def __call__(self, data): |
| 45 | self.randomize() |
| 46 | return data + self._a |
| 47 | |
| 48 | |
| 49 | class _TestCompose(Compose): |
no outgoing calls
searching dependent graphs…