Skip to content

How to convert a numpy ndarray into tfrecord? #7

@bzhong2

Description

@bzhong2

How can I change a numpy ndarray into tfrecord? Should I change the numpy matrix into string. Which decoder should I use? slim.tfexample_decoder.Tensor(). I used np.array2string to change the matrix to string but I failed to convert the tfrecord file back to numpy array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions