Yes, if it was rented in 2017 you should include the depreciation. You will have to recapture the depreciation whether you take it or not.
Basis adjustment for depreciation
allowed or allowable. You must reduce the
basis of property by the depreciation allowed or allowable, whichever is greater. Depreciation allowed is depreciation you actually deducted (from which you received a
tax benefit). Pub 946