tensorflow::Input::Initializer a({{1, 2}, {3, 4}});
Actually it works in compiling, but errors when running, which shows that a
is a tensor with [0] tensorshape.
I don't know where is wrong, but my successful way is:
tensorflow::Input::Initializer a({1, 2, 3, 4}, tensorflow::TensorShape({2, 2}));