def ones_like(self, x): '''Instantiates an all-ones tensor of the same shape as another tensor. ''' return T.ones_like(x)