fannxy / nfgen Goto Github PK
View Code? Open in Web Editor NEWNFGen: Automatic Non-Linear Function Evaluation Code Generator for General-purpose MPC Platforms
License: MIT License
NFGen: Automatic Non-Linear Function Evaluation Code Generator for General-purpose MPC Platforms
License: MIT License
Hi,
I recently cloned this repo and had a few small issues and questions while trying it out for MP-SPDZ.
example.py
code working, I had to make a few small changes:
n
- I believe they should be m
.from Compiler import types
to support the @types.vectorize
annotation.With these two changes, MP-SPDZ can compile the generated sigmoid. Is this a correct fix?
example.py
code to use f = 16
and n = 31
, leaving other components unchanged, the resulting approximation has many coeffA
values that equal 16384.0
, but only values on [-16384, 16384)
can be converted to fixed-point (not inclusive at the upper bound).f = 16
, n = 30
instead, the approximation has many -8192.0
and 8192.0
coefficients and uses ~8500 pieces, though it can be compiled under default MP-SPDZ parameters.Thanks.
Hi, I was wondering if it would be possible to replace the addition, multiplication and comparison protocols designed separately instead of the publicly available library to generate piece-wise polynomial functions for complex functions? If so, how can I do it.
Note on Python 3.8 it works.
Here is the error trace:
ERROR: Could not find a version that satisfies the requirement NFGen (from versions: none)
ERROR: No matching distribution found for NFGen
WARNING: You are using pip version 21.3; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.