Skip to content

Add a default value field for schema.feature #17

@schmidt-jake

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

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