Skip to content

fix: Resolve fixed-size array error #1281

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

eLDoherty
Copy link
Contributor

@eLDoherty eLDoherty commented Jan 13, 2025

Replace .ToArray() with .ToList() to allow dynamic modification of network_nodes in MapGraphNetwork()

Replaced .ToArray() with .ToList() to resolve the issue where .Add() was called on a fixed-size array.

This preventing the "Collection was of a fixed size" error when called something like this var model = keras.Model(new Tensors(new Tensor[] { encoder_inputs, decoder_inputs }), outputs: decoder_dense);

Replace .ToArray() with .ToList() to allow dynamic modification of network_nodes

Replaced .ToArray() with .ToList() to resolve the issue where .Add() was called on a fixed-size array. Lists allow dynamic modification, preventing the "Collection was of a fixed size" error.
@eLDoherty eLDoherty changed the title Update Functional.cs fix: Resolve fixed-size array error in MapGraphNetwork() of Functional.cs Jan 14, 2025
@eLDoherty eLDoherty changed the title fix: Resolve fixed-size array error in MapGraphNetwork() of Functional.cs fix: Resolve fixed-size array error Jan 14, 2025
@eLDoherty eLDoherty closed this Jan 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant