Skip to content

AttributeError: type object 'MoG6' has no attribute 'precision_matrix' #1

@liufeng2317

Description

@liufeng2317

Dear Mr.Jonathan Smith:
   I'm sorry that there are some errors when I Run the code in colab, the log is as follow:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-27-6a4e625ac7ac> in <module>()
     50     super(MoG6, self).__init__(loc, cov)
     51 
---> 52 mog6 = MoG6(device=device)

2 frames
/usr/local/lib/python3.7/dist-packages/torch/distributions/distribution.py in __init__(self, batch_shape, event_shape, validate_args)
     48                 if constraints.is_dependent(constraint):
     49                     continue  # skip constraints that cannot be checked
---> 50                 if param not in self.__dict__ and isinstance(getattr(type(self), param), lazy_property):
     51                     continue  # skip checking lazily-constructed args
     52                 value = getattr(self, param)

AttributeError: type object 'MoG6' has no attribute 'precision_matrix'

  the issue located at torch/distributions/distribution.py,and I don’t know how to fix it. I would be grateful if you could help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions