def _feature_variable(self, obs):
    ' Extract precomputed features into variable. '
    features = np.empty((len(obs), args.views, (self.feature_size + args.angle_feat_size)), dtype=np.float32)
    for (i, ob) in enumerate(obs):
        features[i, :, :] = ob['feature']
    return Variable(torch.from_numpy(features), requires_grad=False).cuda()
Extract precomputed features into variable.
def _feature_variable(self, obs):
    '  '
    features = np.empty((len(obs), args.views, (self.feature_size + args.angle_feat_size)), dtype=np.float32)
    for (i, ob) in enumerate(obs):
        features[i, :, :] = ob['feature']
    return Variable(torch.from_numpy(features), requires_grad=False).cuda()