Sign inSign up

tataucloud/cryptonet

By tataucloud

Updated over 7 years ago

HE Transformer Docker Image

Image
1

1.1K

tataucloud/cryptonet repository overview

HE Transformer Docker Image

Docker image for the HE Transformer

Prerequisites

If you need to run on GPU additional dependencies are required

1. Pull & run image
docker pull tataucloud/cryptonet

# On CPU
docker run -ti --rm tataucloud/cryptonet

# On GPU
nvidia-docker run -ti --rm tataucloud/cryptonet

Ensure the virtual environment is active, i.e. run

source $HE_TRANSFORMER/build/external/venv-tf-py3/bin/activate
2. Run C++ unit-tests

To run CKKS unit-test

./test/unit-test --gtest_filter="HE_SEAL_CKKS.*abc*" 

To run BFV unit-test


./test/unit-test --gtest_filter="HE_SEAL_BFV.*abc*"

To run all C++ unit-tests

./test/unit-test

3. Run Simple python example
cd $HE_TRANSFORMER/examples
# Run with CPU
python axpy.py
# To run CKKS unit-test
NGRAPH_TF_BACKEND=HE_SEAL_CKKS python axpy.py
# To run BFV unit-test
NGRAPH_TF_BACKEND=HE_SEAL_BFV python axpy.py

For a deep learning example, see examples/cryptonets/.

Tag summary

Content type

Image

Digest

Size

4.5 GB

Last updated

over 7 years ago

docker pull tataucloud/cryptonet