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
I have been trying to set up GradientBoosting for an snnTorch model I am working on it's mostly PyTorch in the background. However, I've run into a circular issue that I have yet to find a solution for:
Originally, my inputs for my train/test loaders for my feed forward snnTorch model were all dtype torch.float. I got this error:
In an attempt to fix this, I tried changed the type for all my inputs to be dtype torch.int64, but got this error:
113 def forward(self, input: Tensor) -> Tensor:
--> 114 return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 must have the same dtype
For an input to require_grad, the tensor must be a float, so changing dtype in my Linear layers don't help, either.
What could be going wrong? Since snnTorch is an extension of PyTorch, I was hoping that Ensemble-Pytorch would also be compatible, but if there is some core compatibility issues I understand. Thanks in advance!
Edit: To clarify, ensemble.fit exposes these issues.
The text was updated successfully, but these errors were encountered:
Hi,
I have been trying to set up GradientBoosting for an snnTorch model I am working on it's mostly PyTorch in the background. However, I've run into a circular issue that I have yet to find a solution for:
Originally, my inputs for my train/test loaders for my feed forward snnTorch model were all dtype torch.float. I got this error:
In an attempt to fix this, I tried changed the type for all my inputs to be dtype torch.int64, but got this error:
For an input to require_grad, the tensor must be a float, so changing dtype in my Linear layers don't help, either.
What could be going wrong? Since snnTorch is an extension of PyTorch, I was hoping that Ensemble-Pytorch would also be compatible, but if there is some core compatibility issues I understand. Thanks in advance!
Edit: To clarify, ensemble.fit exposes these issues.
The text was updated successfully, but these errors were encountered: