Skip to content

Commit

Permalink
doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
lingfanyu committed Jan 5, 2019
1 parent 2163332 commit c378481
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/dgl/runtime/ir/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ def pprint(self):
self.pprint_exe(exe)

class CurrentProgram(threading.local):

"""Thread local storage to keep the reference of current thread's program"""
def __init__(self):
super(CurrentProgram, self).__init__()
self.prog = None

def get_prog(self):
"""Get program"""
return self.prog

def set_prog(self, program):
"""Set program"""
self.prog = program

# current program
Expand Down

0 comments on commit c378481

Please sign in to comment.