Skip to content

Half type arrays #115

@martindevans

Description

@martindevans

Problem

It isn't possible to create a numpy array from a Half[]

Example

This code:

var x = new[] { (Half)1, (Half)2, (Half)3 };
var y = np.array(x);

Produces this error:

System.ArgumentException: 'Can not convert type of given object to dtype: System.Half[]'

Expected

I expected this to create a new array with dtype == float16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions