assertrt_val.dtype!=np.dtype('O'),"yielded data is not a valid tensor(number of elements on some dimension may differ)."
assertrt_val.dtype!=np.dtype('O'),message+"yielded data is not a valid tensor (number of elements on some dimension may not consistent): {}".format(rt_val)