Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding 4D support for transpose operation #1030

Merged
merged 2 commits into from
Aug 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions phylanx/plugins/common/transpose_operation_nd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,88 @@ namespace phylanx { namespace common
execution_tree::primitive_argument_type&& arg,
ir::node_data<std::int64_t>&& axes, std::string const& name,
std::string const& codename);

template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes0132(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes0213(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes0231(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes0312(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes0321(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes1023(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes1032(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes1203(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes1230(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes1302(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes1320(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes2013(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes2031(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes2103(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes2130(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes2301(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes2310(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes3012(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes3021(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes3102(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes3120(ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type
transpose4d_axes3201(ir::node_data<T>&& arg);

template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type transpose4d(
ir::node_data<T>&& arg);
template <typename T>
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type transpose4d(
ir::node_data<T>&& arg, ir::node_data<std::int64_t>&& axes);

PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type transpose4d(
execution_tree::primitive_argument_type&& arg,
std::string const& name, std::string const& codename);
PHYLANX_COMMON_EXPORT execution_tree::primitive_argument_type transpose4d(
execution_tree::primitive_argument_type&& arg,
ir::node_data<std::int64_t>&& axes, std::string const& name,
std::string const& codename);
}}

#endif
Loading