{"id":"compute.tensor--FloatTensorFromValues","name":"FloatTensorFromValues","owner":"yeho","package":"compute.tensor","kind":"function","signature":"external FloatTensorFromValues(text label, list of int dimensions, list of float values, text device) returns floatTensorBuffer","description":"Float tensor from values.","context":"Represent tensor shapes, layouts, and numerical storage contracts.","parameters":[{"name":"label","type":"text","description":"Supply label as text."},{"name":"dimensions","type":"list of int","description":"Supply dimensions as list of int."},{"name":"values","type":"list of float","description":"Supply values as list of float."},{"name":"device","type":"text","description":"Supply device as text."}],"returns":"floatTensorBuffer","members":[],"tags":["compute","compute.tensor","cpu","function","source-example","tensor","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/tensor/float_tensor.yh","line":122,"sha256":"0a8e231f966540405bb2026e00e19317c459e8161d2b3380d31f95c51029112d"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use FloatTensorFromValues","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.tensor\n\n// Represent tensor shapes, layouts, and numerical storage contracts.\ntext label = \"Player health\"\nlist of int dimensions = []\nlist of float values = []\ntext device = \"device\"\nfloatTensorBuffer result = FloatTensorFromValues(label, dimensions, values, device)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__floattensorfromvalues\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"e481960d721120dd1ae1ad9380adde7cf71fad18f4dced02f738feb94b8da7e2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--FloatTensorFromValues","json":"https://demonhunterlabs.com/reference/items/compute.tensor--FloatTensorFromValues.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--FloatTensorFromValues.md"}
