Does the Protecting Tenants at Foreclosure Act apply if I give the bank a deed in lieu of foreclosure?

I know if my rental property is foreclosed upon, the tenants must be given a minimum of 90 days notice to move, but if the new owner will not be moving into the property (such as a bank)...