Skip to content

[BUG Report]: Exception of type System.AccessViolationException is thrown while loading data into an NDArray #1299

@Rokumaehn

Description

@Rokumaehn

Description

While loading training data into an NDArray an exception is being thrown. In this example "i" was 455, "xDim" = 740, "yDim" = 532

Image

this is the stack trace

Image

Reproduction Steps

probably loading as much data as in the description above into an NDArray of the same shape.
With this code:

Image

Known Workarounds

Initialize xData NDArray after the loop. Create a temporary list of NDArrays and add them to xData after the loop.

Something like this:

Image

Configuration and Other Information

TensorFlow.NET version is 0.150.0
target .net version is 9.0
OS is windows 11

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