88from tensorboardX import SummaryWriter
99from torchvision .utils import make_grid
1010
11- from .plotting import plot_spikes , plot_voltages , plot_conv2d_weights
1211from ..utils import reshape_conv2d_weights
12+ from .plotting import plot_conv2d_weights , plot_spikes , plot_voltages
1313
1414
1515class PipelineAnalyzer (ABC ):
@@ -25,7 +25,6 @@ def finalize_step(self) -> None:
2525 """
2626 Flush the output from the current step.
2727 """
28- pass
2928
3029 @abstractmethod
3130 def plot_obs (self , obs : torch .Tensor , tag : str = "obs" , step : int = None ) -> None :
@@ -38,7 +37,6 @@ def plot_obs(self, obs: torch.Tensor, tag: str = "obs", step: int = None) -> Non
3837 :param tag: A unique tag to associate the data with.
3938 :param step: The step of the pipeline.
4039 """
41- pass
4240
4341 @abstractmethod
4442 def plot_reward (
@@ -57,7 +55,6 @@ def plot_reward(
5755 :param tag: A unique tag to associate the data with.
5856 :param step: The step of the pipeline.
5957 """
60- pass
6158
6259 @abstractmethod
6360 def plot_spikes (
@@ -75,7 +72,6 @@ def plot_spikes(
7572 :param tag: A unique tag to associate the data with.
7673 :param step: The step of the pipeline.
7774 """
78- pass
7975
8076 @abstractmethod
8177 def plot_voltages (
@@ -96,7 +92,6 @@ def plot_voltages(
9692 :param tag: A unique tag to associate the data with.
9793 :param step: The step of the pipeline.
9894 """
99- pass
10095
10196 @abstractmethod
10297 def plot_conv2d_weights (
@@ -110,7 +105,6 @@ def plot_conv2d_weights(
110105 :param tag: A unique tag to associate the data with.
111106 :param step: The step of the pipeline.
112107 """
113- pass
114108
115109
116110class MatplotlibAnalyzer (PipelineAnalyzer ):
@@ -313,7 +307,6 @@ def finalize_step(self) -> None:
313307 """
314308 No-op for ``TensorboardAnalyzer``.
315309 """
316- pass
317310
318311 def plot_obs (self , obs : torch .Tensor , tag : str = "obs" , step : int = None ) -> None :
319312 # language=rst
0 commit comments