Skip to content

[BUG] Fix adding empty named IOKey in Connect #53

Open
@kberat-synnada

Description

@kberat-synnada

Bug Report

Describe the Bug

Raises exception while adding empty named IOKey in Connect. The error is triggered only if summary is called.

To Reproduce

model = Model()
model += (add := Add())
model += Add()(left = Connect(add.left, key=IOKey("")))
model.summary()

Expected Behavior

The code above should run without a problem.

System Info

  • OS: macOS Sonoma 14.5
  • Mithril Version: 0.1.1
  • Torch Version: 2.4.1
  • MLX Version: 0.18.0
  • NumPy Version: 2.1.2
  • JAX Version: 0.4.34
  • Python Version: 3.12.7

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