bigqwu

谷歌api驗證

export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhv3TNUAHPDLj/5Y28bCU1C7Ma0swZEFtKsZULVvUyntEmvNud1HcMs6Beb3A+OGVzMtLwQmgu6X1/jFwkxbXjOBAJABMFsZEh7Mqt6eqThhoDSzirn9dtU8uabni9t+4xtIVdIz+sQ7NtTjMEwJC1TF7fzi2ruRurv+f1L45T/Dwu6NUEBPSiRDOtoMyWkmNsKYN6YrIik5VOIVzxqpMkEAfiPrtVCMWpelCael14fVhhZidrS5q5unUTjKJLUSjMOw5a7hk7ku/mzu6krQ00S1ma5VnevDJoB1uI61kCZNDFcywAMVQ74zPhyPZCneeOjuA9LTJnWfv7yhxGHAaJ ledi@ledi-Shangqi-X4650
conda install -c conda-forge google-cloud-bigquery-storage
conda install -c conda-forge google-cloud-storage
conda install -c conda-forge happybase
conda install -c conda-forge google-cloud-bigtable
conda install -c conda-forge gcsfs
pip install  google-cloud-happybase
pip install apscheduler
pip install pandas-gbq
pip install gcsfs
pip install pandarallel
pip install scikit-learn
pip install google-cloud-bigquery-storage[pandas,fastavro]
def initialize(self):
        logging.error('initialzing the model')
        import tensorflow as tf
        gpus = tf.config.experimental.list_physical_devices('GPU')
        for gpu in gpus:
            tf.config.experimental.set_memory_growth(gpu, True)
        #tf.keras.mixed_precision.experimental.set_policy('mixed_float16')
        model_dir = './weight/'
        bst_model_path = os.path.join(model_dir, 'weight.h5')
        self.model = get_bilstm_model(bag_embedding, bag_info, item_ids = item_ids, units = 32, compile_model = False, position_embedding = position_embedding)
        self.model.load_weights(bst_model_path)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章