第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

通過 CloudML 獲取 TFrecords 的批量預測

通過 CloudML 獲取 TFrecords 的批量預測

牛魔王的故事 2021-06-11 14:01:30
我遵循了這個很棒的教程并成功地訓練了一個模型(在 CloudML 上)。我的代碼也進行離線預測,但現(xiàn)在我正在嘗試使用 Cloud ML 進行預測并遇到一些問題。為了部署我的模型,我遵循了本教程?,F(xiàn)在我有一個生成TFRecordsvia的代碼,apache_beam.io.WriteToTFRecord我想對這些TFRecords. 為此,我正在關注這篇文章,我的命令如下所示:gcloud ml-engine jobs submit prediction $JOB_ID --model $MODEL --input-paths gs://"$FILE_INPUT".gz --output-path gs://"$OUTPUT"/predictions --region us-west1 --data-format TF_RECORD_GZIP但我只得到錯誤: 'Exception during running the graph: Expected serialized to be a scalar, got shape: [64]似乎它需要不同格式的數(shù)據(jù)。我在這里找到了 JSON 的格式規(guī)范,但找不到如何使用 TFrecords 來實現(xiàn)。更新:這是輸出 saved_model_cli show --all --dirMetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:signature_def['prediction']:  The given SavedModel SignatureDef contains the following input(s):    inputs['example_proto'] tensor_info:    dtype: DT_STRING    shape: unknown_rank    name: input:0  The given SavedModel SignatureDef contains the following output(s):    outputs['probability'] tensor_info:    dtype: DT_FLOAT    shape: (1, 1)    name: probability:0  Method name is: tensorflow/serving/predictsignature_def['serving_default']:  The given SavedModel SignatureDef contains the following input(s):    inputs['example_proto'] tensor_info:    dtype: DT_STRING    shape: unknown_rank    name: input:0  The given SavedModel SignatureDef contains the following output(s):    outputs['probability'] tensor_info:    dtype: DT_FLOAT    shape: (1, 1)    name: probability:0  Method name is: tensorflow/serving/predict
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 156 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號