This is an automated email from the ASF dual-hosted git repository.
guanmingchiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new 88f924b12 Fix unused field warning in TorchReader (#850)
88f924b12 is described below
commit 88f924b1281eb2456a7c0a8ecf6173d1c72f906a
Author: Guan-Ming (Wesley) Chiu <[email protected]>
AuthorDate: Sun Jan 18 00:40:44 2026 +0800
Fix unused field warning in TorchReader (#850)
---
qdp/qdp-core/src/readers/torch.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/qdp/qdp-core/src/readers/torch.rs
b/qdp/qdp-core/src/readers/torch.rs
index 7c8507968..27fd41057 100644
--- a/qdp/qdp-core/src/readers/torch.rs
+++ b/qdp/qdp-core/src/readers/torch.rs
@@ -27,6 +27,8 @@ use crate::reader::DataReader;
/// Reader for PyTorch `.pt`/`.pth` tensor files.
pub struct TorchReader {
+ /// Path to the PyTorch file. Used only when the `pytorch` feature is
enabled.
+ #[allow(dead_code)]
path: std::path::PathBuf,
read: bool,
num_samples: Option<usize>,