Kaggle TPU switched to tf 2.3.1. But I need tf 2.2.0.
I tried:
!pip install tensorflow~=2.2.0
Tensorflow switches to 2.2.1. But I am getting an error:
InvalidArgumentError: NodeDef expected inputs 'string' do not match 0 inputs specified; Op ;attr=T:type; attr=tensor_name:string; attr=send_device:string; attr=send_device_incarnation:int; attr=recv_device:string; attr=client_terminated:bool,default=false; is_stateful=true>; NodeDef: {{node _Send}}
when calling:
tpu = tf.distribute.cluster_resolver.TPUClusterResolver() # TPU detection
print('Running on TPU ', tpu.cluster_spec().as_dict()['worker'])
tf.config.experimental_connect_to_cluster(tpu)
tf.tpu.experimental.initialize_tpu_system(tpu)
There is no such a problem on Google Colab.
Looks like it is impossible. Refer to:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.