Skip to content

Commit

Permalink
docstring changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed May 7, 2024
1 parent 5a1be5d commit 1ec6909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygsti/modelmembers/torchable.py
Expand Up @@ -28,10 +28,10 @@ def torch_base(sd : Tuple, t_param : Tensor) -> Tensor:
"""
Suppose "obj" is an instance of some Torchable subclass. If we compute
sd = obj.stateless_data()
vec = obj.to_vector()
t_param = torch.from_numpy(vec)
t = type(obj).torch_base(sd, t_param, grad)
sd = obj.stateless_data()
t = type(obj).torch_base(sd, t_param)
then t will be a PyTorch Tensor that represents "obj" in a canonical numerical way.
Expand Down

0 comments on commit 1ec6909

Please sign in to comment.