public static bool BasicTensorTest_Success00() { int[] in_dim = new int[4] { 3, 224, 224, 1 }; TensorsInfo tensorsInfo = new TensorsInfo(); tensorsInfo.AddTensorInfo(TensorType.UInt8, in_dim); /* Check */ if (tensorsInfo.GetTensorType(0) != TensorType.UInt8) { return(false); } int[] in_res = tensorsInfo.GetDimension(0); for (int i = 0; i < 4; ++i) { if (in_dim[i] != in_res[i]) { return(false); } } return(true); }