Comments (4)
Hello, np.sum
will be available in the next release of concrete-numpy (v0.6.0, which will be released in a month). As for np.array()
, we cannot support it directly because of technical limitations, but we might be able to provide hnp.array(...)
to create encrypted arrays. Though, I cannot think of a situation in which you would want to do that.
from concrete-numpy.
With the release of v0.6.0
, np.sum
is now supported.
import concrete.numpy as cnp
import numpy as np
@cnp.compiler({"x": "encrypted"})
def function(x):
return np.sum(x)
inputset = [np.random.randint(0, 10, size=(2, 2)) for _ in range(10)]
circuit = function.compile(inputset)
sample = np.array([[1, 2], [3, 4]])
assert circuit.encrypt_run_decrypt(sample) == np.sum(sample)
The creation of encrypted arrays will come in v0.8.0
in a few months.
from concrete-numpy.
Closing due to inactivity. Please create another issue if your problem is not resolved.
from concrete-numpy.
from concrete-numpy.
Related Issues (14)
- Use multiprocessing to avoid crashes
- Ipykernel dies when .compile() method runs/completes HOT 2
- Fix broken link to the table lookups tutorial in the README file HOT 1
- [Question]: Disabling concrete-csprng warning HOT 2
- Not installing with pip in googlecloab HOT 1
- AttributeError: 'FHECircuit' object has no attribute 'encrypt_run_decrypt' HOT 2
- Unable to install through PIP HOT 5
- Inputset for table lookups HOT 4
- Float usage HOT 9
- Could not find a version that satisfies the requirement concrete-compiler HOT 14
- Docker M1 Illegal instruction HOT 1
- Allow large models to be compiled, avoiding `RuntimeError: Can't emit artifacts` HOT 1
- np.dot between matrices results in compilation error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from concrete-numpy.