File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,13 @@ causal-lm.path = "causal-lm"
2424test-utils = { path = " test-utils" , default-features = false }
2525
2626ggus = " 0.3"
27+ ndarray-layout = " 0.0"
2728itertools = " 0.13"
2829regex = " 1.11"
2930env_logger = " 0.11"
3031build-script-cfg = " 0.0"
3132
32- ndarray-layout = { git = " https://github.com/YdrMaster/ndarray-layout" , rev = " f1fdd24" }
3333operators = { git = " https://github.com/YdrMaster/operators-rs" , rev = " b9e6fdd" , default-features = false }
34-
3534search-cl-tools = { git = " https://github.com/InfiniTensor/clrt" , rev = " 6846d52" }
3635search-infini-tools = { git = " https://github.com/InfiniTensor/infini-rt" , rev = " 136c30b" }
3736search-cuda-tools = { git = " https://github.com/YdrMaster/cuda-driver" , rev = " e2ec203" }
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ impl<T> Tensor<T> {
188188 // 所有维度可以合并成一个
189189 . merge ( 0 ..self . layout . ndim ( ) )
190190 // 合并后元素之间步长等于元素的长度
191- . map_or ( false , |layout| {
191+ . is_some_and ( |layout| {
192192 let [ s] = layout. strides ( ) else {
193193 unreachable ! ( )
194194 } ;
You can’t perform that action at this time.
0 commit comments