Is it possible obtain objects of type Parameter by name? The use case is to do something like:
optimizer = optim.Adam([param for name, param in model.state_dict().iteritems()
                        if 'foo' in name], lr=args.lr)

but each param here will be a FloatTensor so the optimizer throws a TypeError