If no contributions are made to your 401(k) by either you or your employer for the entire year, then you are not considered an active participant for that year, and it will not affect your ability to make a deductible IRA contribution. If you participated in the 401(k) plan for 2016, make sure that your employer will not be making a 2016 matching contribution in 2017.
Many employers do not understand this rule. Check with your payroll department and make sure that the "Retirement plan" box on your W-2 will not be checked. If they disagree, refer them to IRS Notice 87-16. Make sure they understand that a 401(k) is a defined contribution plan, not a defined benefit plan.