Investors & landlords

Would the amount reported for depreciation be only for the years it was rented?  The amount depreciated on Schedule E for each year's tax return?  Thank you!