close
Skip to content

Shape checking #5

Description

@migueldeicaza

Shape Checking

One of the challenges that developers face when building AI models is to make sure that the shapes that flow from different parts of their networks match on both ends, otherwise errors can be introduced in the computation.

Typically developers either get runtime errors in the best case scenarios, or just meaningless results in the worst case scenarios, and it can consume a lot of time to spot those problems.

To address this problem, Don Syme prototyped a dynamic type checker for F# in Visual Studio. To an end-user this feels like Intellisense, but for tensor shapes. Under the hood, this integrates deeply with TensorFlow (or other frameworks) to dynamically extract shapes as they are being computed.

We propose to bring this shape checking to C# as well.

This shows how this works for the simplest type (click on link for video):

Image

And this example shows it in action with a DNN (click on link for video):

Image

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