Skip to content

Commit

Permalink
replay messenger
Browse files Browse the repository at this point in the history
  • Loading branch information
ordabayevy committed Jan 16, 2024
1 parent b4564c1 commit 1885e22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyro/poutine/replay_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

from typing import TYPE_CHECKING, Dict, Optional

import torch

from pyro.poutine.messenger import Messenger

if TYPE_CHECKING:
import torch

from pyro.poutine.runtime import Message
from pyro.poutine.trace_struct import Trace

Expand Down Expand Up @@ -43,7 +43,7 @@ class ReplayMessenger(Messenger):
def __init__(
self,
trace: Optional["Trace"] = None,
params: Optional[Dict[str, torch.Tensor]] = None,
params: Optional[Dict[str, "torch.Tensor"]] = None,
) -> None:
"""
:param trace: a trace whose values should be reused
Expand Down

0 comments on commit 1885e22

Please sign in to comment.