Tensor_U8 extends Tensor<Tensor_U8> { @Override protected int innerArrayLength() { return d.length; } Tensor_U8(int... shape );  Tensor_U8(); static Tensor_U8 wrap( byte[] data , int...shape); @Override double getDouble(int... coordinate); @Override Object getData(); @Override void setData(Object data); @Override Tensor_U8 create(int... shape); @Override void zero(); @Override Class getDataType(); public byte d; }
@Test public void getInnerLength() { Tensor_U8 T = new Tensor_U8(3,4,1); T.reshape(2,2); assertEquals(12,T.innerArrayLength()); }