You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use candle_core::{Device,Tensor};pubfnmain() -> candle_core::Result<()>{let device = Device::Cpu;let indices = Tensor::from_vec::<_,u32>(vec![],0,&device)?;let sample = Tensor::randn(0.,1.,(3,3,3),&device)?;// works fine, produces a result with shape (0, 3, 3)let result = sample.index_select(&indices,0)?;dbg!(result);let device = Device::new_cuda(0)?;let indices = Tensor::from_vec::<_,u32>(vec![],0,&device)?;let sample = Tensor::randn(0.,1.,(3,3,3),&device)?;// crashes with Cuda(Cuda(DriverError(CUDA_ERROR_INVALID_VALUE, "invalid argument")))let result = sample.index_select(&indices,0)?;dbg!(result);Ok(())}
candle-core version is 0.8.1
The text was updated successfully, but these errors were encountered:
Here's a minimal reproduction:
candle-core
version is 0.8.1The text was updated successfully, but these errors were encountered: