4
설명서 here에 이어 유니 코드 문자열로 기능을 만들려고합니다. 여기에 기능 생성 방법은 내가 str
에 value
을 포장하는 경우, 당연히표준 TensorFlow 형식의 유니 코드
File "/home/rklopfer/.virtualenvs/tf/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 512, in init
copy.extend(field_value)
File "/home/rklopfer/.virtualenvs/tf/local/lib/python2.7/site-packages/google/protobuf/internal/containers.py", line 275, in extend
new_values = [self._type_checker.CheckValue(elem) for elem in elem_seq_iter]
File "/home/rklopfer/.virtualenvs/tf/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 108, in CheckValue
raise TypeError(message)
TypeError: u'Gross' has type <type 'unicode'>, but expected one of: (<type 'str'>,)
를 예외를 발생합니다
def _bytes_feature(value):
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
이, 어떻게 생겼는지, 그것은 처음 실제 유니 코드 문자에 실패 마주 친다.