예제 #1
0
 def _int32_feature(value):
     """Wrapper for inserting int32 features into Example proto."""
     if not isinstance(value, list):
         value = [value]
     return of_record.Feature(int32_list=of_record.Int32List(value=value))
 def create_int32_feature(values):
     return of_record.Feature(int32_list=of_record.Int32List(value=values)),
예제 #3
0
def int32_feature(value):
    if not isinstance(value, (list, tuple)):
        value = [value]
    return ofrecord.Feature(int32_list=ofrecord.Int32List(value=value))