modules/model.py
def reset_hidden(hidden, mask):
            """Helper function that resets hidden state when some sessions terminate"""
            if len(mask) != 0:
                hidden[:, mask, :] = 0
            
            return hidden
Helper function that resets hidden state when some sessions terminate
Helper function that resets hidden state when some sessions terminate
Helper function that resets hidden state when some sessions terminate
def reset_hidden(hidden, mask):
            if len(mask) != 0:
                hidden[:, mask, :] = 0
            return hidden
def reset_hidden ( hidden , mask ) : if len ( mask ) != 0 : hidden [ : , mask , : ] = 0 return hidden
Helper function that resets hidden state when some sessions terminate
Helper function that resets hidden state when some sessions terminate
"""Helper function that resets hidden state when some sessions terminate"""
hidden
mask