Skip to content

Utility to create a feature_spec from a schema #18

Description

@schmidt-jake

Converting a schema to a feature_spec = {feature.name: tf.io.FixedLenFeature(...) for feature in schema.feature} is a very common task. There is a utility to do this already in tensorfow transform, but there are many times where I don't need tensorflow transform except for that one function. I think it should belong in this repo instead.

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