You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <xtensor/xtensor.hpp>
#include <xtensor/xadapt.hpp>
#include <xtensor-blas/xlinalg.hpp>
#include <xtensor/xarray.hpp>
#include <xtensor/xmanipulation.hpp>
#include <iostream>
int main()
{
// good
{
auto a { xt::xarray<int>::from_shape({2}) };
std::cout << a << std::endl;
a = xt::expand_dims(a, 0);
std::cout << a << std::endl;
}
// good
{
auto a { xt::xtensor<float, 1>::from_shape({2}) };
std::cout << a << std::endl;
xt::xarray<float> b { a };
std::cout << b << std::endl;
b = xt::expand_dims(b, 0);
std::cout << b << std::endl;
xt::xtensor<float, 2> c { b };
std::cout << c << std::endl;
}
// *** stack smashing detected ***: terminated
{
auto a { xt::xtensor<float, 1>::from_shape({2}) };
std::cout << a << std::endl;
a = xt::expand_dims(a, 0);
std::cout << a << std::endl;
}
return 0;
}
Hello!
I found a strange action in the code
The code returned
the interrupt location is near
std::copy
inxtl/include/xtl/xsequence.hpp
The text was updated successfully, but these errors were encountered: