sonnet
TensorFlow-based neural network library
File Explorer
- ci.yml
- favicon.ico
- BUILD
- link_tf_api.py
- link_tf_api_test.py
- .gitignore
- api.rst
- conf.py
- index.rst
- Makefile
- modules.rst
- references.bib
- requirements.txt
- BUILD
- distributed_cifar10.ipynb
- functional_mlp_mnist.py
- little_gan_on_mnist.ipynb
- mlp_on_mnist.ipynb
- README.md
- simple_mnist.py
- simple_mnist_test.py
- vqvae_example.ipynb
- __init__.py
- BUILD
- resnet.py
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00002
- checkpoint-1.data-00001-of-00002
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00002
- checkpoint-1.data-00001-of-00002
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- checkpoint
- checkpoint-1.data-00000-of-00001
- checkpoint-1.index
- BUILD
- generate.py
- README.md
- __init__.py
- api_test.py
- BUILD
- build_test.py
- checkpoint_test.py
- copy_test.py
- descriptors.py
- descriptors_test.py
- distribute_test.py
- doctest_test.py
- function_test.py
- goldens.py
- goldens_test.py
- keras_test.py
- optimizer_test.py
- pickle_test.py
- saved_model_test.py
- tensorflow1_test.py
- xla_test.py
- __init__.py
- BUILD
- distributed_batch_norm.py
- distributed_batch_norm_test.py
- replicator.py
- replicator_test.py
- replicator_test_utils.py
- __init__.py
- BUILD
- haiku.py
- haiku_test.py
- jax.py
- jax_test.py
- optimizers.py
- optimizers_test.py
- utils.py
- __init__.py
- BUILD
- control.py
- control_test.py
- read.py
- read_test.py
- util.py
- util_test.py
- write.py
- write_test.py
- __init__.py
- BUILD
- cifar10_convnet.py
- cifar10_convnet_test.py
- mlp.py
- mlp_test.py
- resnet.py
- resnet_test.py
- vqvae.py
- vqvae_test.py
- __init__.py
- adam.py
- adam_test.py
- BUILD
- momentum.py
- momentum_test.py
- optimizer_tests.py
- optimizer_utils.py
- rmsprop.py
- rmsprop_test.py
- sgd.py
- sgd_test.py
- __init__.py
- axis_norm.py
- axis_norm_test.py
- base.py
- base_test.py
- batch_apply.py
- batch_apply_test.py
- batch_norm.py
- batch_norm_test.py
- bias.py
- bias_test.py
- BUILD
- build.py
- build_defs.bzl
- build_test.py
- conv.py
- conv_test.py
- conv_transpose.py
- conv_transpose_test.py
- custom_getter.py
- custom_getter_test.py
- deferred.py
- deferred_test.py
- depthwise_conv.py
- depthwise_conv_test.py
- dropout.py
- dropout_test.py
- embed.py
- embed_test.py
- group_norm.py
- group_norm_test.py
- initializers.py
- initializers_test.py
- leaky_clip_by_value.py
- leaky_clip_by_value_test.py
- linear.py
- linear_test.py
- metrics.py
- metrics_test.py
- mixed_precision.py
- mixed_precision_test.py
- moving_averages.py
- moving_averages_test.py
- once.py
- once_test.py
- pad.py
- pad_test.py
- parallel_linear.py
- parallel_linear_test.py
- recurrent.py
- recurrent_test.py
- regularizers.py
- regularizers_test.py
- reshape.py
- reshape_test.py
- scale_gradient.py
- scale_gradient_test.py
- sequential.py
- sequential_test.py
- test_utils.py
- types.py
- utils.py
- utils_test.py
- __init__.py
- BUILD
- distribute.py
- functional.py
- initializers.py
- mixed_precision.py
- optimizers.py
- pad.py
- regularizers.py
- CONTRIBUTING.md
- LICENSE
- MANIFEST.in
- README.md
- readthedocs.yml
- requirements-test.txt
- requirements-tf.txt
- requirements.txt
- setup.py
- test.sh
- WORKSPACE
# Installation Guide
python- Python 3.x
- TensorFlow 2.0 >= 2.0
Setup Steps
pip install tensorflow tensorflow-probability
Install TensorFlow and related packages.
pip install dm-sonnet
Install the Sonnet library.
Key Commands
pip install tensorflow tensorflow-probability dm-sonnet
Install TensorFlow and Sonnet libraries.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Release Timeline
- 2024-01-02 v2.0.2
- 2024-01-02 v2.0.1
- 2020-03-27 v2.0.0
- 2019-09-06 v2.0-beta: Sonnet 2.0 Beta release Pre-release
Command Glossary
Commands referenced in this DOCs, explained below.
pickle
View Details ▼
pickle
A PHP extension installer based on Composer.
pickle install {{extension_name}}
Install a specific PHP extension:
pickle convert {{path/to/directory}}
Convert an existing PECL extension configuration to a Pickle configuration file:
pickle validate {{path/to/directory}}
Validate a PECL extension:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
