mirror of https://github.com/tracel-ai/burn.git
Add comment
This commit is contained in:
parent
e04c8ad894
commit
93d137ddd9
|
@ -69,6 +69,8 @@ impl<B: FusionBackend> QTensorOps<Self> for Fusion<B> {
|
|||
}
|
||||
};
|
||||
// TODO: B::QuantizedElem::dtype()?
|
||||
// Right now we know that the dtype is u32 for jit backends, but we could possibly
|
||||
// make this more flexible in the future
|
||||
let qtensor = client.register_tensor(
|
||||
handles.pop().unwrap(),
|
||||
shape.dims,
|
||||
|
@ -126,6 +128,8 @@ impl<B: FusionBackend> QTensorOps<Self> for Fusion<B> {
|
|||
|
||||
let shape: Vec<usize> = tensor.shape.clone();
|
||||
// TODO: B::QuantizedElem::dtype()?
|
||||
// Right now we know that the dtype is u32 for jit backends, but we could possibly
|
||||
// make this more flexible in the future
|
||||
let out = tensor.client.tensor_uninitialized(shape, u32::dtype());
|
||||
|
||||
let streams = if let Some(offset) = &qparams.offset {
|
||||
|
|
Loading…
Reference in New Issue