kernel-elastic-autoencoder 3.0.0__tar.gz → 3.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kernel_elastic_autoencoder
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  Summary: Implementation of Kernel-Elastic Autoencoder for Molecular Design (https://doi.org/10.1093/pnasnexus/pgae168)
5
5
  License: MIT
6
6
  Author: Felix Rotter-McCartney
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "kernel_elastic_autoencoder"
3
- version = "3.0.0"
3
+ version = "3.0.1"
4
4
  description = "Implementation of Kernel-Elastic Autoencoder for Molecular Design (https://doi.org/10.1093/pnasnexus/pgae168)"
5
5
  authors = [
6
6
  { name = "Felix Rotter-McCartney", email = "felix.rotter@mail.utoronto.ca" }
@@ -19,7 +19,7 @@ class Pipeline:
19
19
 
20
20
  Getting a completion for sequences:
21
21
  >>> compl = pipe.completion(latents, ["abc", "def", "ghi"], [[1.0, 0.5], [2.0, 1.0], [3.0, 1.5]])
22
- >>> print(compl.outputs)
22
+ >>> print(compl)
23
23
  """
24
24
 
25
25
  def __init__(
@@ -58,7 +58,7 @@ class Pipeline:
58
58
  max_length=self.model.config_typed.input.max_len,
59
59
  add_special_tokens=False,
60
60
  **kwargs,
61
- )
61
+ ).to(self.device)
62
62
  conditions = torch.as_tensor(conditions, dtype=torch.float, device=device)
63
63
  condition_mask = (
64
64
  conditions != self.model.config_typed.common.padding_value