Home | History | Annotate | Download | only in kernel_tests

Lines Matching defs:feature

38 feature = feature_pb2.Feature
39 features = lambda d: feature_pb2.Features(feature=d)
40 bytes_feature = lambda v: feature(bytes_list=feature_pb2.BytesList(value=v))
41 int64_feature = lambda v: feature(int64_list=feature_pb2.Int64List(value=v))
42 float_feature = lambda v: feature(float_list=feature_pb2.FloatList(value=v))
44 feature_list = lambda l: feature_pb2.FeatureList(feature=l)
174 # Feature "c" is missing a default, this gap will cause failure.
180 # Edge case where the key is there but the feature value is empty
181 original = example(features=features({"c": feature()}))
188 "Feature: c \\(data type: float\\) is required"))
197 "Feature: c \\(data type: float\\) is required"))
230 expected_err=(ValueError, "Missing shape for feature a"))
241 "st_d": feature(), # feature with nothing in it
289 "val": feature(), # feature with nothing in it
290 # missing idx feature
377 "val": feature(), # feature with nothing in it
378 # missing idx feature
450 # TODO(lew): Feature appearing twice should be an error in future.
523 "b": feature()
614 # Feature "c" must be provided, since it has no default_value.
805 "First dimension of shape for feature a unknown. "
818 "All dimensions of shape for feature c need to be known "
924 # Feature "c" must be provided, since it has no default_value.