tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [0] [Op:Assert] name
tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [0] [Op:Assert] name: EagerVariableNameReuse解決方案。
問題原因:安裝了TensorFlow·2.3.0版本
解決方案:pip install -U tensorflow-gpu ==2.1.0
運用上面的程式碼,重新安裝tensorflow 2.1.0 版本就行了。(本人裝的是GPU版本,大家如果裝的是CPU版本,可以用這個命令:pip install -U tensorflow== 2.1.0
)
以上安裝命令,安裝完tensorflow==2.1.0版本後,會自動解除安裝已安裝的其它版本。
然後重新執行原先會報錯的程式碼,發現就可以執行了,不會在報錯。搞定!!
相關文章
- _gcry_ath_mutex_lock: Assertion `*lock == ((ath_mutex_t) 0)' failed.GCMutexAI
- ASSERTION FAILED: TLS ALLOCATOR ALLOC_TEMP_THREAD...AITLSthread
- 問題解決:shared_ptr Assertion px != 0 failed 及debug經驗分享AI
- 安裝CLUSTER碰到 Assertion failed offset fFileSize錯誤AI
- ?WARNING: ASM communication error: op 0 state 0x0 (15055)ASMError
- VS C++ 出現debug assertion failed彈框,怎麼定位程式碼C++AI
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- assert
- Resolving archive.cloudera.com... failed: Temporary failure in nameHiveCloudAI
- Opiino: Attach Failed! Error=-1 Ifvp=0AIError
- Assertion failure 錯誤AI
- vulnhub - ASSERTION1.0.1
- ORA-12154: TNS:could not resolve service name / TNS-03505: Failed to resolve nameAI
- ASSERT函式函式
- Resolving failed: Temporary failure in name resolution 錯誤解決方法AI
- Assertion failure in -[UICollectionViewData validateLayoutInRect:]AIUIView
- listDatabases failed:{ "errmsg" : "need to login", "ok" : 0 }DatabaseAI
- OP code彙總
- ORA-29516: Aurora assertion failure: Assertion failure at joez.c:3311AI
- op_array 結構
- Nodejs 斷言 assertNodeJS
- C++中的assertC++
- [InnoDB] Assertion failure: ut0ut.cc:553 thread 140235111884544【筆記】AIthread筆記
- SYS_OP_MAP_NONNULL操作Null
- Assertion failure in -[UITableView -configureCellForDisplay:forIndexPath:]AIUIViewIndex
- python 中assert的使用Python
- python斷言方法assertPython
- Java中的斷言assertJava
- Python中斷言assertPython
- Python語言assert用法Python
- DB_NAME&TANCE_NAME&DB_UNIQUE_NAME&ORACLE_SID&GLOBAL_NAME&DB_DOMAIN&SERVICE_NAMEOracleAI
- 轉:Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]AIUIViewIndex
- MongoDB報錯:"assertion" : "can't map file memory"MongoDB
- SpringBoot(20)---斷言(Assert)Spring Boot
- JavaScript中if巢狀assert的方法JavaScript巢狀
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError
- Oracle OCP IZ0-053 Q368(DB_FILE_NAME_CONVERT)Oracle
- error: '[class name]' does not name a typeError