def initial_state_with_taps(layer, dimensions=None):
 state = initial_state(layer, dimensions)
 if (state is not None):
  return dict(initial=state, taps=[(-1)])
 else:
  return None

def initial_state_with_taps ( layer , dimensions = None ) : state = initial_state ( layer , dimensions ) if ( state is not None ) : return dict ( initial = state , taps = [ ( - 1 ) ] ) else : return None
optionally wrap tensor variable into a dict with taps=[-1] .