Skip to content

Cannot read arrays stored with "string" objects. #6

@oysteijo

Description

@oysteijo
A = np.random.rand(32,16).astype(np.float32)
B = np.random.rand(16, 8).astype(np.float32)
C = np.random.rand(8, 4).astype(np.float32)
activations = np.array(["sigmoid", "tanh", "softmax"])
np.savez("nn.npz", A,B,C,activations)

The above generated .npz can be read perfectly with example.c, however:

np.savez("nn_order.npz", activations, A,B,C)

cannot be read properly. Like it only reads the first array, and then stops....

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions