Hello !!
The raised error means that you are not instantiating your model in the proper strategy, which is true accordingly to the code you shared. I suggest you to take a look at the scripts available in the examples 70 folder in the repo.
You can get more detail on why you get this error in the TensorFlow documentation 34.
Hope this helps.