Skip to content

Commit

Permalink
Add stage marker to test_memory (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajprad authored and fritzo committed Feb 26, 2018
1 parent 0f9b498 commit 6df6721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import gc

import networkx as nx
import pytest
import torch
from torch.autograd import Variable

Expand All @@ -14,6 +15,9 @@
from pyro.poutine.trace import Trace


pytestmark = pytest.mark.stage('unit')


def count_objects_of_type(type_):
return sum(1 for obj in gc.get_objects() if isinstance(obj, type_))

Expand Down

0 comments on commit 6df6721

Please sign in to comment.