tensorflow / metadata

Utilities for passing TensorFlow-related metadata between tools
Apache License 2.0
106 stars 49 forks source link

Add a default value field for schema.feature #17

Open schmidt-jake opened 3 years ago

schmidt-jake commented 3 years ago

We use TFMD schemas to construct feature_specs to parse TFRecords. Some records may have missing entries for certain features, and in such cases we may want to allow a default value. This functionality is already supported in tf.io.FixedLenFeature. It would be nice to add some fields to the Feature message to mirror this:

message Feature {
  ...
  oneof default_value_type {
    int64 int_default = ...;
    ...
  }
}