returns the number of dimensions sometimes referred to as rank of the tensor . will be 0 for a scalar , 1 for a vector , 2 for a matrix , 3 for a 3-dimensional tensor etc. . concode_field_sep long nativeHandle concode_elem_sep DataType dtype concode_elem_sep long[] shapeCopy concode_field_sep void readNDArray concode_elem_sep int scalarInt concode_elem_sep void delete concode_elem_sep long longValue concode_elem_sep T copyTo concode_elem_sep void fillShape concode_elem_sep long scalarLong concode_elem_sep long allocateScalarBytes concode_elem_sep Tensor create concode_elem_sep long getNativeHandle concode_elem_sep void throwExceptionIfTypeIsIncompatible concode_elem_sep void close concode_elem_sep long[] shape concode_elem_sep long[] shape concode_elem_sep int intValue concode_elem_sep boolean scalarBoolean concode_elem_sep DataType dataType concode_elem_sep float floatValue concode_elem_sep int dtype concode_elem_sep double doubleValue concode_elem_sep DataType dataTypeOf concode_elem_sep byte[] scalarBytes concode_elem_sep float scalarFloat concode_elem_sep long allocate concode_elem_sep void setValue concode_elem_sep double scalarDouble concode_elem_sep boolean booleanValue concode_elem_sep String toString concode_elem_sep byte[] bytesValue concode_elem_sep Tensor fromHandle
int function ( ) { return shapeCopy . length ; }