Translation
beignet.translation_identity
translation_identity(size, *, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False)
Identity translation vectors.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size
|
int
|
Output size. |
required |
out
|
Tensor
|
Output tensor. Default, |
None
|
dtype
|
dtype
|
Type of the returned tensor. Default, global default. |
None
|
layout
|
layout
|
Layout of the returned tensor. Default, |
strided
|
device
|
device
|
Device of the returned tensor. Default, current device for the default tensor type. |
None
|
requires_grad
|
bool
|
Whether autograd records operations on the returned tensor. Default,
|
False
|
Returns:
Name | Type | Description |
---|---|---|
output |
Tensor, shape=(size, 3)
|
Identity rotation quaternions. |
Source code in src/beignet/_translation_identity.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|