Skip to content

Layers with heterogeneous data types #1918

Description

@hannes-brt

It currently doesn't seem to be possible to define layers with bottom and top of different data types. I noticed @jeffdonahue's EmbedLayer (#1872) which works around this by casting floating point inputs to int. Specifically, I was hoping to implement a layer that encodes DNA sequence in 1-of-n encoding using Blob<char> as bottom and Blob<dtype> as top. This doesn't seem possible with the current architecture so I'll probably have to work around it by pre-encoding all my data. However, maybe it will be possible to make the architecture flexible enough to allow this sort of thing.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions