• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pyro-ppl / pyro / 7092333286
92%

Build:
DEFAULT BRANCH: dev
Ran 04 Dec 2023 08:57PM UTC
Jobs 1
Files 316
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Dec 2023 08:44PM UTC coverage: 91.931%. Remained the same
7092333286

push

github

web-flow
Update effect_handlers.ipynb (#3296)

```python
print(scale_log_joint({"measurement": torch.tensor(9.5), "weight": torch.tensor(8.23)}, torch.tensor(8.5)))
```

prevents the following error message:

```python
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
File ~/.pyenv/versions/pyciemss-main/lib/python3.10/site-packages/pyro/poutine/trace_struct.py:196, in Trace.log_prob_sum(self, site_filter)
    195 try:
--> 196     log_p = site["fn"].log_prob(
    197         site["value"], *site["args"], **site["kwargs"]
    198     )
    199 except ValueError as e:

File ~/.pyenv/versions/pyciemss-main/lib/python3.10/site-packages/torch/distributions/normal.py:79, in Normal.log_prob(self, value)
     78 if self._validate_args:
---> 79     self._validate_sample(value)
     80 # compute the variance

File ~/.pyenv/versions/pyciemss-main/lib/python3.10/site-packages/torch/distributions/distribution.py:271, in Distribution._validate_sample(self, value)
    270 if not isinstance(value, torch.Tensor):
--> 271     raise ValueError('The value argument to log_prob must be a Tensor')
    273 event_dim_start = len(value.size()) - len(self._event_shape)

ValueError: The value argument to log_prob must be a Tensor

The above exception was the direct cause of the following exception:

ValueError                                Traceback (most recent call last)
Cell In[5], line 9
      6     return _log_joint
      8 scale_log_joint = make_log_joint(scale)
----> 9 print(scale_log_joint({"measurement": 9.5, "weight": 8.23}, 8.5))

Cell In[5], line 5, in make_log_joint.<locals>._log_joint(cond_data, *args, **kwargs)
      3 conditioned_model = poutine.condition(model, data=cond_data)
      4 trace = poutine.trace(conditioned_model).get_trace(*args, **kwargs)
----> 5 return trace.log_prob_sum()

File ~/.pyenv/versions/pyciemss-main/lib/p... (continued)

22911 of 24922 relevant lines covered (91.93%)

2.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7092333286.1 04 Dec 2023 09:26PM UTC 316
91.93
Source Files on build 7092333286
  • Tree
  • List 316
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a14fabc9 on github
  • Prev Build on dev (#7089496577)
  • Next Build on dev (#7120474936)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc