跳到主要內容
支援知識庫

在 2020.3 OpenVINO™工具組轉換 TensorFlow* 型號 2.4.1 時遇到錯誤

內容類型: 相容性   |   文章 ID: 000089086   |   最近查看日期: 2022 年 02 月 03 日

環境

OpenVINO™工具組 2020.3,TensorFlow 版本 2.4.1

描述

  • 無法轉換未凍結的 TensorFlow 型號 2.4.1 與 OpenVINO™ Toolkit 2020.3:
    python3 mo_tf.py --input_model .pb

  • 收到錯誤:
    [ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (): Unexpected exception happened during extracting attributes for node Adam/dense_11/bias/v/Read/ReadVariableOp.
    Original exception message: 'ascii' codec can't decode byte 0xcc in position 1: ordinal not in range(128)

解決方法

TensorFlow 2.x 模型從 2020 年 OpenVINO™工具組 2020.4 開始受到支援。

升級 至 OpenVINO™ Toolkit 2020.4 或更新版本。

TensorFlow 2.x 正式支援兩種型號格式:SavedModel 和 Keras H5 (或 HDF5)

請參閱將 TensorFlow 2 轉換為 IR

相關產品

本文章適用 3 產品。
Intel® Xeon Phi™ 處理器軟體 OpenVINO™ toolkit 效能程式庫

免責聲明

這個頁面的內容綜合了英文原始內容的人工翻譯譯文與機器翻譯譯文。本內容是基於一般資訊目的,方便您參考而提供,不應視同完整或準確的內容。如果這個頁面的英文版與譯文之間發生任何牴觸,將受英文版規範及管轄。 查看這個頁面的英文版。