How to connect to private storage bucket using the Google Colab TPU

前端 未结 2 2046
闹比i
闹比i 2021-01-21 08:54

I am using google colab pro and the provided TPU. I need to upload a pre-trained model into the TPU.

  • TPU can load data only from a google cloud storage bucket.
2条回答
  •  长发绾君心
    2021-01-21 09:56

    As stated in the public documentation in order to find the service account of your Colab TPU you just need to replace the project number in the following mail address:

     service-[PROJECT_NUMBER]@cloud-tpu.iam.gserviceaccount.com
    

    You can find your project number in the dashboard of your Google Cloud Project

    After doing this you should set the access to your bucket as fine-grained access and provide access for this this account in the ACL of your bucket

提交回复
热议问题