def _sample(self, n_samples): return tf.random_gamma([n_samples], self.alpha, beta=self.beta, dtype=self.dtype)