check for tpu availability in save_pretrained (#7699)
Added is_torch_tpu_available() to the condition for saving a model as xla model. "xla_device" property of config can also be True on a non-xla device, when loading a checkpointthat was trained on xla before. Resolves #7695
Showing
Please register or sign in to comment