Thank you ! I have float now. I have another question. Now I have error :
Traceback (most recent call last):
  File "", line 121, in <module>
    train(epoch)
  File "", line 102, in train
    output = model(features)
  File "", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "y", line 56, in forward
    x = self.activation(self.bn1(self.conv1(x)))
  File "", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "", line 135, in forward
    return F.batch_norm(
  File "", line 2147, in batch_norm
    _verify_batch_size(input.size())
  File "", line 2114, in _verify_batch_size
    raise ValueError("Expected more than 1 value per channel when training, got input size {}".format(size))
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 10, 1])


What does it mean ?? Should I change sth in :
self.conv1 = nn.Conv1d(1, 10, 1)