()
| 41 | num_points = points.shape[0] |
| 42 | |
| 43 | def _fn(): |
| 44 | x = constant_op.constant(points) |
| 45 | if batch_size == num_points: |
| 46 | return x, None |
| 47 | indices = random_ops.random_uniform(constant_op.constant([batch_size]), |
| 48 | minval=0, maxval=num_points-1, |
| 49 | dtype=dtypes.int32, |
| 50 | seed=10) |
| 51 | return array_ops.gather(x, indices), None |
| 52 | return _fn |
| 53 | |
| 54 | def setUp(self): |
nothing calls this directly
no test coverage detected