[英]Is it possible to install earlier version of tensorflow on Kaggle TPU?
Kaggle TPU 切換到 tf 2.3.1。 但我需要 tf 2.2.0。
我試過:
!pip install tensorflow~=2.2.0
Tensorflow 切換到 2.2.1。 但我收到一個錯誤:
InvalidArgumentError:NodeDef 預期輸入“字符串”與指定的 0 個輸入不匹配; 操作 attr=T:類型; 屬性=張量名稱:字符串; attr=send_device:string; attr=send_device_incarnation:int; attr=recv_device:string; attr=client_terminated:bool,default=false; is_stateful=true>; 節點定義:{{節點_發送}}
打電話時:
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)
Google Colab 上沒有這樣的問題。
看起來是不可能的。 參考:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.