We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97a4de commit 85a1f0eCopy full SHA for 85a1f0e
pymc3/variational/opvi.py
@@ -1021,11 +1021,14 @@ def logq_norm(self):
1021
return self.logq / self.symbolic_normalizing_constant
1022
1023
def __str__(self):
1024
- shp = str(self.ddim)
1025
- if self.islocal:
1026
- shp = 'None, ' + shp
1027
- elif self.batched:
1028
- shp = str(self.bdim) + shp
+ if self.group is None:
+ shp = 'undefined'
+ else:
+ shp = str(self.ddim)
+ if self.islocal:
1029
+ shp = 'None, ' + shp
1030
+ elif self.batched:
1031
+ shp = str(self.bdim) + ', ' + shp
1032
return '{cls}[{shp}]'.format(shp=shp, cls=self.__class__.__name__)
1033
1034
@node_property
0 commit comments