Skip to content

Commit

Permalink
Fix var names in test_mixture_same_family_mean_shape
Browse files Browse the repository at this point in the history
  • Loading branch information
CJMenart committed Feb 2, 2024
1 parent 95276b3 commit 51782e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/distributions/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4048,10 +4048,10 @@ def test_continuous_bernoulli_shape_tensor_params(self):
self.assertRaises(ValueError, continuous_bernoulli.log_prob, self.tensor_sample_2)
self.assertEqual(continuous_bernoulli.log_prob(torch.ones(3, 1, 1)).size(), torch.Size((3, 3, 2)))

def test_mixture_same_family_shape(self):
def test_mixture_same_family_mean_shape(self):
mix_distribution = Categorical(torch.ones([3,1,3]))
component_distribution = torch.distributions.Normal(torch.zeros([3,3,3]), torch.ones([3,3,3]))
gmm = MixtureSameFamilyFixed(mix, comp)
component_distribution = Normal(torch.zeros([3,3,3]), torch.ones([3,3,3]))
gmm = MixtureSameFamilyFixed(mix_distribution, component_distribution)
self.assertEqual( len(gmm.mean.shape), 2)

@skipIfTorchDynamo("Not a TorchDynamo suitable test")
Expand Down

0 comments on commit 51782e0

Please sign in to comment.