Skip to content

Instantly share code, notes, and snippets.


Cem Bassoy bassoy

  • Fraunhofer IOSB
  • Germany
View GitHub Profile
bassoy / main.cpp
Created Apr 2, 2020 — forked from amitsingh19975/main.cpp
decoupling tensor
View main.cpp
int main(){
auto s1 = ub::test::tensor_static_container<float,ub::static_extents<1,2,3>, ub::first_order>{};
auto s2 = ub::test::tensor_static_container<float,ub::static_extents<1,2,3>, ub::first_order>{1};
return 0;
bassoy / main.cpp
Last active Sep 29, 2018
Example of Tensor/Matrix/Vector Profiler
View main.cpp
// Wraps the standard transpose
template<typename _Value, typename _Layout>
struct StandardTranspose
using Value = _Value;
using Layout = _Layout;
using Array = fhg::tensor<Value, Layout>;
static constexpr auto name = "transpose";
static auto call(Array const& a, std::vector<std::size_t> const& phi) { return a.transpose(phi); }