---
title: "loadNpy"
sidebar_label: "loadNpy"
description: "Kotlin binding reference: loadNpy."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Io](index.md)/[loadNpy](loadNpy.md)

# loadNpy

[common]\
fun [loadNpy](loadNpy.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), device: [Device](../Device/index.md)? = null): [Tensor](../Tensor/index.md)

Load a NumPy `.npy` array as a tensor on [device](loadNpy.md) (the CPU when null).