2017-06-20 27 views
1

我正在运行一个张量流模型,并得到以下错误:张量流作用域名称的约束是什么?

ValueError:'Cement(component 1)(kg in a m^3 mixture)'不是有效的作用域名称。

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

谢谢。

回答

6

从TF source

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)