Skip to content

Commit 424c653

Browse files
authored
Bump ndarray version (#30)
1 parent 297ddb0 commit 424c653

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

rust/algebra/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ failure_derive = { version = "0.1.1" }
3232

3333
serde = { version = "1", features = [ "derive" ] }
3434
num-traits = { version = "0.2.6"}
35-
ndarray = { version = "0.12", features = [ "serde-1" ] }
35+
ndarray = { version = "0.15.4", features = [ "serde-1" ] }
3636

3737
colored = { version = "1", optional = true }
3838
rayon = { version = "1", optional = true }

rust/algebra/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
unsafe_code
2626
)]
2727
#![deny(unsafe_code)]
28-
#![feature(const_fn_trait_bound)]
2928

3029
#[macro_use]
3130
extern crate derivative;

rust/crypto-primitives/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rand_chacha = { version = "0.1.1" }
2424
num-traits = { version = "0.2" }
2525
arrayvec = { version = "0.5" }
2626
serde = { version = "1", features = [ "derive" ] }
27-
ndarray = { version = "0.12", features = [ "serde" ] }
27+
ndarray = { version = "0.15.4", features = [ "serde" ] }
2828
fancy-garbling = { version = "0.3", git = "https://github.com/pratyush/fancy-garbling/", branch = "add-serde", features = [ "serde1" ] }
2929
rand = { version = "0.6" }
3030

rust/neural-network/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ edition = "2018"
2121
algebra = { path = "../algebra" }
2222
crypto-primitives = { path = "../crypto-primitives" }
2323
serde = { version = "1", features = [ "derive" ] }
24-
ndarray = { version = "0.12", features = [ "serde-1" ] }
24+
ndarray = { version = "0.15.4", features = [ "serde-1" ] }
2525
rand = { version = "0.6" }
2626
npy = { version = "0.4" }
2727
npy-derive = { version = "0.4" }

rust/neural-network/src/tensors/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ macro_rules! ndarray_impl {
7070

7171
#[inline]
7272
fn into_iter(self) -> Self::IntoIter {
73-
self.0.into_iter()
73+
(&self.0).into_iter()
7474
}
7575
}
7676

rust/protocols-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cmake = { version = "0.1.42" }
2424
algebra= { path="../algebra" }
2525
crypto-primitives= { path="../crypto-primitives" }
2626
neural-network = { path="../neural-network" }
27-
ndarray = { version = "0.12", features = [ "serde-1" ] }
27+
ndarray = { version = "0.15.4", features = [ "serde-1" ] }
2828
num-traits = { version = "0.2.6"}
2929
rand = { version = "0.6" }
3030

rust/protocols-sys/src/server_cg.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<'a> ServerCG for Conv2D<'a> {
8787
for (inp_c, tmp_i) in tmp_image.iter_mut().enumerate() {
8888
*tmp_i = kernel
8989
.slice(s![out_c, inp_c, .., ..])
90-
.into_slice()
90+
.to_slice()
9191
.expect("Error converting kernel")
9292
.as_ptr();
9393
}
@@ -162,7 +162,7 @@ impl<'a> ServerCG for FullyConnected<'a> {
162162
for row in 0..data.filter_h as usize {
163163
kernel_vec[row] = kernel
164164
.slice(s![row, .., .., ..])
165-
.into_slice()
165+
.to_slice()
166166
.expect("Error converting kernel")
167167
.as_ptr();
168168
}

rust/protocols/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ num-traits = { version = "0.2.6"}
2121
bench-utils = { path = "../bench-utils" }
2222
algebra = { path = "../algebra" }
2323
protocols-sys = { path = "../protocols-sys" }
24-
ndarray = { version = "0.12", features = [ "serde-1" ] }
24+
ndarray = { version = "0.15.4", features = [ "serde-1" ] }
2525
crypto-primitives = { path = "../crypto-primitives" }
2626
ocelot = { version = "0.3", git = "https://github.com/GaloisInc/ocelot/" }
2727
scuttlebutt = { version = "0.3", git = "https://github.com/GaloisInc/scuttlebutt/", features = [ "serde" ], tag = "0.3.2" }

0 commit comments

Comments
 (0)