Skip to content

Commit 21a68b8

Browse files
committed
Fix missing/feature guarded UniqueId import
1 parent c2a353f commit 21a68b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ min-cl = { git = "https://github.com/elftausend/min-cl", optional = true }
5151
# min-cl = { version = "0.3.0", optional=true }
5252

5353
[features]
54-
default = ["cpu", "opencl", "blas", "static-api", "stack", "macro", "untyped", "autograd", "autograd", "cached", "lazy", "fork", "graph", "serde"]
54+
default = ["cpu", "opencl", "blas", "static-api", "stack", "macro", "untyped", "autograd", "autograd", "cached", "lazy", "fork", "graph", "serde", "cuda"]
5555
# default = ["cpu"]
5656
# default = ["no-std"]
5757
# default = ["opencl"]

src/modules/cached.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use crate::{
77
AddGradFn, AddLayer, AddOperation, Alloc, Buffer, Cache, CachedBuffers, Cursor, Device,
88
ExecNow, FastCache, HasId, HasModules, IsShapeIndep, Module, OnDropBuffer, OnNewBuffer,
99
Parents, PtrType, RemoveLayer, ReplaceBuf, Retrieve, RunModule, SetOpHint, Setup, ShallowCopy,
10-
Shape, Unit, WrappedData,
10+
Shape, Unit, WrappedData, UniqueId
1111
};
1212

1313
#[cfg(feature = "graph")]
14-
use crate::{DeviceError, Optimize, UniqueId};
14+
use crate::{DeviceError, Optimize};
1515

1616
// creator struct, however =>
1717
// TODO: could remove D generic and therefore CachedModule

0 commit comments

Comments
 (0)