Skip to content
Snippets Groups Projects
Commit 5a882a01 authored by Christophe Guillon's avatar Christophe Guillon Committed by Maxence Naud
Browse files

[Tensor] Rework bindings for Tensor constructors

For constructors, now manage correctly:
- np array 0-rank arrays scalar,
- python int|float scalars,
- np scalars np.dtype() (different from 0-rank array scalars),
- contruction with dims=..., now a kw only argument,
- np arrays of rank >= 1 as before.

For setters, now manage correctly conversion without
loss of precision and do not raise in case of overflow as we
would expect with C++ interface.
Added support in ctors/get/set for some missing types, now
support [u]int(8|16|32|64).
parent 1c21952e
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!172[Tensor] Rework bindings for Tensor constructors
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment