List of commits:
Subject Hash Author Date (UTC)
fix d4f0a50ffb6afea07df425d759fdf8460839d0ce Xiangru Lian 2019-01-07 22:27:56
add numpy support 2e10283edfc427ea4da6a76c8c3a6f85a44bace4 Xiangru Lian 2019-01-07 22:24:12
update fcfc8a26e275395688fb3fa50538f890c1f612e4 Xiangru Lian 2019-01-07 21:55:04
use markdown for readme f46e30761b4f361d5494484d9bdb20dc04a20d83 Xiangru Lian 2019-01-07 21:53:46
add readme a9a0b91ea0e0485039ea76b6b69c5f983815e8a3 Xiangru Lian 2019-01-07 21:52:31
fix 16a965862eaefa554a540fd2eeee26f73907d5dd Xiangru Lian 2019-01-07 21:37:12
fix setup.py 24e85045cc859ffa7d6f514c80257fde94c0794a Xiangru Lian 2019-01-07 21:35:15
compatible with setup.py 657782ac87ea9251f2e3726b483089eca5384caf Xiangru Lian 2019-01-07 21:33:48
initial commit 27cb0b3b4f5f20240af6d14ead4f373a1aaa5343 Xiangru Lian 2019-01-07 21:26:20
Update .gitignore 52642556fea807b773617938eecd2d9d17f34bc6 ikzk 2019-01-07 20:16:37
Commit d4f0a50ffb6afea07df425d759fdf8460839d0ce - fix
Author: Xiangru Lian
Author date (UTC): 2019-01-07 22:27
Committer name: Xiangru Lian
Committer date (UTC): 2019-01-07 22:27
Parent(s): 2e10283edfc427ea4da6a76c8c3a6f85a44bace4
Signing key:
Tree: 3172facd174d770e4aa3617730477162769e9a3e
File Lines added Lines deleted
persia_pytorch_toolkit/tensor_utils.py 1 1
File persia_pytorch_toolkit/tensor_utils.py changed (mode: 100644) (index 6740458..946ff2a)
... ... def to_device_from_numpy(container, device):
39 39 """The device could be cuda:0 for example.""" """The device could be cuda:0 for example."""
40 40 device = torch.device(device) device = torch.device(device)
41 41 return _iterate_over_container(container, return _iterate_over_container(container,
42 lambda x: torch.as_tensor(x, dtype=_numpy_dtype_to_torch_dtype(x.dtype), device=device)
42 lambda x: torch.as_tensor(x, dtype=_numpy_dtype_to_torch_dtype(x.dtype), device=device),
43 43 np.ndarray np.ndarray
44 44 ) )
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/ikzk/persia-pytorch-toolkit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/ikzk/persia-pytorch-toolkit

Clone this repository using git:
git clone git://git.rocketgit.com/user/ikzk/persia-pytorch-toolkit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main