strings

to_strings_tensor(string_values, name)[源代码]

Create the tensor that the value holds the list of string. NOTICE: The value will be holded in the cpu place.

参数
  • string_values (list[string]) -- The value will be setted to the tensor.

  • name (string) -- The name of the tensor.

to_map_tensor(string_dict, name)[源代码]

Create the tensor that the value holds the map, the type of key is the string. NOTICE: The value will be holded in the cpu place.

参数
  • string_dict (dict) -- The value will be setted to the tensor.

  • name (string) -- The name of the tensor.