add Tensor.from_blob (#6765)

* draft tensor from pointer init

* some docs and types

* comment

* cleaner

* test

* malloc

* qcom cl interop

* jit example

* cleaner

* dealoc

* wording

* docs
This commit is contained in:
nimlgen
2024-09-26 18:33:19 +08:00
committed by GitHub
parent 14ad47b515
commit 3c56aeee70
6 changed files with 127 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
::: tinygrad.Tensor.full_like
::: tinygrad.Tensor.zeros_like
::: tinygrad.Tensor.ones_like
::: tinygrad.Tensor.from_blob
## Creation (random)