张量流范围名称的约束是什么? [英] What are the constraints for tensorflow scope names?

查看:20
本文介绍了张量流范围名称的约束是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 tensorflow 模型并收到以下错误:

I'm running a tensorflow model and getting the following error:

ValueError: 'Cement (component 1)(kg in a m^3 mix)'不是有效的范围名称.

ValueError: 'Cement (component 1)(kg in a m^3 mixture)' is not a valid scope name.

我知道 tf 可能不喜欢其范围名称中的特殊字符和空格,但我正在尝试查找有关允许使用哪些字符的实际文档.有谁知道我在哪里可以找到这个?

I get that tf probably doesn't like special chars and spaces in its scope names, but I'm trying to find an actual doc on what chars are allowed. Does anyone know where I could find this?

谢谢.

推荐答案

来自 TF 来源:

注意:此构造函数验证给定的 name.有效范围

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)

这篇关于张量流范围名称的约束是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆