How can I get a list of all tensors that requires_grad?

So let’s say I have a list of tensors, some have requires_grad=False, some have requires_grad=True. How can I get a list of all the tensors that come with requires_grad=True?

def get_graded_tensors(my_list):
    new_list = []
    for i, item in enumerate(my_list):
        if item.requires_grad:
            new_list.append(item)
    return new_list