Skip to main content

Python client for using npu api

Project description

NPU Python Client Package

To install, run:

pip install npu

To use in code:

import npu

This library has four core functions. npu.api, npu.compile, npu.train, npu.predict Here is an example script of them in use.

import npu
from import resnet18
from import CIFAR10


model = npu.train(resnet18(pretrained=True),

output = npu.predict(model, data)

Full documentation is here

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for npu, version 0.3.900
Filename, size File type Python version Upload date Hashes
Filename, size npu-0.3.900.tar.gz (19.3 kB) File type Source Python version None Upload date Hashes View
Filename, size npu-0.3.900-py3-none-any.whl (26.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page