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

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

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

# saveNpy

[common]\
fun [saveNpy](saveNpy.md)(tensor: [Tensor](../Tensor/index.md), path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))

Write a tensor as a `.npy` file at [path](saveNpy.md) (materialized contiguous on the host). A quantized tensor is refused with nothing written: dequantize it first.