Skip to main content

Unified API for machine learning

Project description

ΦML

🌐 Homepage   •   📖 Documentation   •   🔗 API   •   ▶ Videos   •   Examples

ΦML provides a unified math and neural network API for Jax, PyTorch, TensorFlow and NumPy.

See the installation Instructions on how to compile the optional custom CUDA operations.

from jax import numpy as jnp
import torch
import tensorflow as tf
import numpy as np

from phiml import math

math.sin(1.)
math.sin(jnp.asarray([1.]))
math.sin(torch.tensor([1.]))
math.sin(tf.constant([1.]))
math.sin(np.asarray([1.]))

Compatibility

  • Writing code that works with PyTorch, Jax, and TensorFlow makes it easier to share code with other people and collaborate.
  • Your published research code will reach a broader audience.
  • When you run into a bug / roadblock with one library, you can simply switch to another.
  • ΦML can efficiently convert tensors between ML libraries on-the-fly, so you can even mix the different ecosystems.

Fewer mistakes

Unique features

Project details


Download files

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

Source Distribution

phiml-1.0.0.tar.gz (250.5 kB view details)

Uploaded Source

File details

Details for the file phiml-1.0.0.tar.gz.

File metadata

  • Download URL: phiml-1.0.0.tar.gz
  • Upload date:
  • Size: 250.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for phiml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 858044adf65c5cbccaa0467548a1cdcdbc695aa056f0469824571718e0ef9e4e
MD5 dfc41b5fbe9f253f6b14e9918a4fa38f
BLAKE2b-256 a3f6def0d6d54b9bfa85dab2f11447d4464d1a1f0d78549a6b5008526ff2fb02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page