Comments (7)
Yes, though I think this is a more general problem. I would like some tooling in Pkg in general for indicating whether a Manifest is advisory or mandatory for a project to avoid confusions like #6. If you then try to load a mandatory manifest with an incorrect julia version, it could warn you.
from toyfhe.jl.
I'm currently working on a PR to Pkg.
In the meantime, what version of Julia did you use to generate that Manifest? Maybe I'm doing something wrong but I cannot get infer.jl
to work. (train.jl
works fine.)
from toyfhe.jl.
Somewhere around master.
from toyfhe.jl.
I can take a look at the error message if you need me to.
from toyfhe.jl.
This is on the latest master.
julia> include("infer.jl")
[ Info: Precompiling Flux [587475ba-b771-5e3f-ad9e-33799f191a9c]
[ Info: Precompiling BSON [fbb218c0-5317-5bc6-957e-2ee96dd4b1f0]
[ Info: Precompiling ToyFHE [ed6b25c6-c39d-11e9-27fc-075f0335bf0b]
Welcome to Nemo version 0.15.2-dev
Nemo comes with absolutely no warranty whatsoever
Welcome to Nemo version 0.15.2-dev
Nemo comes with absolutely no warranty whatsoever
WARNING: Method definition setindex!(AbstractAlgebra.MatElem{T}, AbstractAlgebra.MatElem{T}, Base.Colon, Int64) where {T} in module Generic at /Users/dilum/.julia/packages/AbstractAlgebra/UwYQb/src/generic/Matrix.jl:447 overwritten in module Hecke at /Users/dilum/.julia/packages/Hecke/koySg/src/Misc/Matrix.jl:1347.
** incremental compilation may be fatally broken for this module **
WARNING: Method definition setindex!(AbstractAlgebra.MatElem{T}, AbstractAlgebra.MatElem{T}, Int64, Base.Colon) where {T} in module Generic at /Users/dilum/.julia/packages/AbstractAlgebra/UwYQb/src/generic/Matrix.jl:445 overwritten in module Hecke at /Users/dilum/.julia/packages/Hecke/koySg/src/Misc/Matrix.jl:1355.
** incremental compilation may be fatally broken for this module **
WARNING: Method definition setindex!(AbstractAlgebra.MatElem{T}, AbstractAlgebra.MatElem{T}, Base.Colon, Int64) where {T} in module Generic at /Users/dilum/.julia/packages/AbstractAlgebra/UwYQb/src/generic/Matrix.jl:447 overwritten in module Hecke at /Users/dilum/.julia/packages/Hecke/koySg/src/Misc/Matrix.jl:1347.
** incremental compilation may be fatally broken for this module **
WARNING: Method definition setindex!(AbstractAlgebra.MatElem{T}, AbstractAlgebra.MatElem{T}, Int64, Base.Colon) where {T} in module Generic at /Users/dilum/.julia/packages/AbstractAlgebra/UwYQb/src/generic/Matrix.jl:445 overwritten in module Hecke at /Users/dilum/.julia/packages/Hecke/koySg/src/Misc/Matrix.jl:1355.
** incremental compilation may be fatally broken for this module **
Welcome to
_ _ _
| | | | | |
| |__| | ___ ___| | _____
| __ |/ _ \/ __| |/ / _ \
| | | | __/ (__| < __/
|_| |_|\___|\___|_|\_\___|
Version 0.6.5 ...
... which comes with absolutely no warranty whatsoever
(c) 2015-2019 by Claus Fieker, Tommy Hofmann and Carlo Sircana
WARNING: could not import Base.ctranspose into Mods
WARNING: using Hecke.degree in module Utils conflicts with an existing identifier.
WARNING: using Hecke.modulus in module Utils conflicts with an existing identifier.
WARNING: Method definition gcdx(Nemo.nmod_poly, Nemo.nmod_poly) in module Nemo at /Users/dilum/.julia/packages/Nemo/eVBf0/src/flint/nmod_poly.jl:500 overwritten in module Utils at /Users/dilum/Downloads/ToyFHE/src/utils.jl:67.
** incremental compilation may be fatally broken for this module **
WARNING: Method definition widen(Type{Int128}) in module GMP at gmp.jl:251 overwritten in module Utils at /Users/dilum/Downloads/ToyFHE/src/utils.jl:89.
** incremental compilation may be fatally broken for this module **
WARNING: using AbstractAlgebra.degree in module ToyFHE conflicts with an existing identifier.
WARNING: using AbstractAlgebra.modulus in module ToyFHE conflicts with an existing identifier.
WARNING: Method definition lift(Nemo.nmod) in module Hecke at /Users/dilum/.julia/packages/Hecke/koySg/src/Misc/Residue.jl:11 overwritten in module ToyFHE at /Users/dilum/Downloads/ToyFHE/src/bfv.jl:194.
** incremental compilation may be fatally broken for this module **
WARNING: Method definition (::Type{ToyFHE.CKKSParams})(Any, Any, Any) in module ToyFHE at /Users/dilum/Downloads/ToyFHE/src/ckks.jl:9 overwritten at /Users/dilum/Downloads/ToyFHE/src/ckks.jl:13.
** incremental compilation may be fatally broken for this module **
WARNING: Method definition 𝒩(ToyFHE.CKKSParams) in module ToyFHE at /Users/dilum/Downloads/ToyFHE/src/ckks.jl:24 overwritten at /Users/dilum/Downloads/ToyFHE/src/insecuredebug.jl:14.
** incremental compilation may be fatally broken for this module **
WARNING: could not import Utils.plaintext_space into ToyFHE
Welcome to Nemo version 0.15.2-dev
Nemo comes with absolutely no warranty whatsoever
Welcome to
_ _ _
| | | | | |
| |__| | ___ ___| | _____
| __ |/ _ \/ __| |/ / _ \
| | | | __/ (__| < __/
|_| |_|\___|\___|_|\_\___|
Version 0.6.5 ...
... which comes with absolutely no warranty whatsoever
(c) 2015-2019 by Claus Fieker, Tommy Hofmann and Carlo Sircana
[ Info: Downloading MNIST dataset
[ Info: Downloading MNIST dataset
[ Info: Downloading MNIST dataset
[ Info: Downloading MNIST dataset
ERROR: LoadError: MethodError: no method matching CKKSParams(::NegacyclicRing{ToyFHE.CRTEncoded{7,Tuple{𝔽₁₁₅₂₉₂₁₅₀₄₆₀₆₉₉₄₄₃₃,𝔽₁₀₉₉₅₁₁₉₂₂₆₈₉,𝔽₁₀₉₉₅₁₂₀₀₄₆₀₉,𝔽₁₀₉₉₅₁₂₂₆₆₇₅₃,𝔽₁₀₉₉₅₁₂₂₉₉₅₂₁,𝔽₁₀₉₉₅₁₂₃₆₅₀₅₇,𝔽₁₁₅₂₉₂₁₅₀₄₆₀₇₁₉₁₀₄₁}},8192}, ::NegacyclicRing{ToyFHE.CRTEncoded{7,Tuple{𝔽₁₁₅₂₉₂₁₅₀₄₆₀₆₉₉₄₄₃₃,𝔽₁₀₉₉₅₁₁₉₂₂₆₈₉,𝔽₁₀₉₉₅₁₂₀₀₄₆₀₉,𝔽₁₀₉₉₅₁₂₂₆₆₇₅₃,𝔽₁₀₉₉₅₁₂₂₉₉₅₂₁,𝔽₁₀₉₉₅₁₂₃₆₅₀₅₇,𝔽₁₁₅₂₉₂₁₅₀₄₆₀₇₁₉₁₀₄₁}},8192}, ::Int64, ::Float64)
Closest candidates are:
CKKSParams(::Any, ::Any, ::Any) at /Users/dilum/Downloads/ToyFHE/src/ckks.jl:13
CKKSParams(::Any, ::Any) at /Users/dilum/Downloads/ToyFHE/src/ckks.jl:13
CKKSParams(::Any) at /Users/dilum/Downloads/ToyFHE/src/ckks.jl:13
...
Stacktrace:
[1] top-level scope at /Users/dilum/Downloads/ToyFHE/examples/encrypted_mnist/infer.jl:112
[2] include(::String) at ./client.jl:439
[3] top-level scope at REPL[1]:1
in expression starting at /Users/dilum/Downloads/ToyFHE/examples/encrypted_mnist/infer.jl:112
from toyfhe.jl.
79a148d try now
from toyfhe.jl.
Looks like it is working now! :)
from toyfhe.jl.
Related Issues (10)
- Clean up Ring Element type
- I wonder which is your julia verision HOT 5
- MNIST example does not work on Julia master HOT 1
- Eventually register this package in the General registry
- `decrypt(circshift(c, gk))` does not work with Julia 1.5.0-beta1 HOT 4
- Write documentation HOT 1
- Pick smaller instances for the tests
- Function for loading a package with a specific manifest
- UndefVarError: FmpzModRing not defined HOT 2
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 toyfhe.jl.