From 837e925dc155e68151742d372bbf3d87b7cc51d8 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Tue, 24 Feb 2015 13:15:09 +0100 Subject: [PATCH] Changed the None test --- bob/learn/em/test/test_ivector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/learn/em/test/test_ivector.py b/bob/learn/em/test/test_ivector.py index 6f8ca98..7e1abd6 100644 --- a/bob/learn/em/test/test_ivector.py +++ b/bob/learn/em/test/test_ivector.py @@ -107,7 +107,7 @@ class IVectorMachinePy(): return TtSigmaInvNT def forward(self, gmmstats): - if self.m_ubm and not (self.m_t == None) and not (self.m_sigma == None): + if self.m_ubm and self.m_t is not None and self.m_sigma is not None: N = gmmstats.n F = gmmstats.sum_px -- GitLab