Skip to content

Add a default value field for schema.feature #17

Description

@schmidt-jake

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 = ...;
    ...
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions