MatX icon indicating copy to clipboard operation
MatX copied to clipboard

Rework Random Tensors APIs [FEA]

Open luitjens opened this issue 3 years ago • 0 comments

Random Tensor APIs were some of our first APIs. We have moved away from that style of API and need to update.

We should depericate/delete tensorShape_t references. We should get rid of GetTensorView from the generator class.

We should add APIs in this form which inherits rank from shape.

Possible APIS auto rand_view = rand(shape, generator, NORMAL); auto rand_view = randn(shape, generator); auto rand_view = generator.normal(shape);

I would love feedback on which APIs are best.

luitjens avatar Sep 07 '22 17:09 luitjens