-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathtensor_skeleton_state.h
More file actions
35 lines (23 loc) · 1.01 KB
/
tensor_skeleton_state.h
File metadata and controls
35 lines (23 loc) · 1.01 KB
1
2
3
4
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
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <momentum/character/fwd.h>
#include <ATen/ATen.h>
#include <pybind11/pybind11.h>
namespace pymomentum {
at::Tensor modelParametersToSkeletonState(pybind11::object characters, at::Tensor modelParams);
at::Tensor modelParametersToLocalSkeletonState(pybind11::object characters, at::Tensor modelParams);
at::Tensor jointParametersToSkeletonState(pybind11::object characters, at::Tensor jointParams);
at::Tensor jointParametersToLocalSkeletonState(pybind11::object characters, at::Tensor jointParams);
at::Tensor skeletonStateToJointParameters(
const momentum::Character& character,
at::Tensor skel_state);
at::Tensor localSkeletonStateToJointParameters(
const momentum::Character& character,
at::Tensor skel_state);
at::Tensor matricesToSkeletonStates(at::Tensor matrices);
} // namespace pymomentum