Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 npu.vision.models import resnet18
from npu.vision.datasets import CIFAR10


npu.api(API_KEY)

model = npu.train(resnet18(pretrained=True),
                         train_data=CIFAR10.train,
                         val_data=CIFAR10.val,
                         loss=npu.loss.CrossEntropyLoss,
                         optim=npu.optim.SGD(lr=0.01),
                         batch_size=128,
                         epochs=2)

output = npu.predict(model, data)

Full documentation is here

Metadata

Release files for neuro 0.4.dev4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuro 0.4.dev4
File Size Uploaded
neuro-0.4.dev4.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuro 0.4.dev4
File Interpreter ABI Platform
neuro-0.4.dev4-py3-none-any.whl Python 3 none any Details

Total release size: 44.2 kB

Release files / neuro-0.4.dev4.tar.gz

Download URL neuro-0.4.dev4.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
242a2dba14949156ec85d4829a72d0d6fec912e472a0d31cab6b8cf97353dadc
BLAKE2b-256 checksum
How to use checksums
056417b3685d98e33e537b8db3b384b39b3d302ec6511fcf65b303cebd5b3c59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release files / neuro-0.4.dev4-py3-none-any.whl

Download URL neuro-0.4.dev4-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
930f9e9a61fe3154adb15ea3da9fc8aeec164f322dc4cc13397905faf23bf23b
BLAKE2b-256 checksum
How to use checksums
2d7b4ec67751f715ae82994977c1d89a04a7dc82f792bd775bbf0b45d6708e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.4.dev4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page