tensorflow作用域名称的约束是什么?

2024-05-16 03:53:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在运行一个tensorflow模型并得到以下错误:

ValueError:“水泥(成分1)(m^3混合物中的kg)”不是有效的作用域名称。

我知道tf可能不喜欢其作用域名称中的特殊字符和空格,但我正试图找到一个关于允许哪些字符的实际文档。有人知道我在哪里能找到这个吗?

谢谢。


Tags: 模型名称tftensorflow错误字符作用域成分
1条回答
网友
1楼 · 发布于 2024-05-16 03:53:42

从TFsource

NOTE: This constructor validates the given name. Valid scope

names match one of the following regular expressions:

[A-Za-z0-9.][A-Za-z0-9_.\\-/]* (for scopes at the root)
[A-Za-z0-9_.\\-/]* (for other scopes)

相关问题 更多 >