Interface ShapeInfoProvider

    • Method Detail

      • createShapeInformation

        Pair<DataBuffer,​long[]> createShapeInformation​(long[] shape,
                                                             DataType dataType)
        This method creates long shapeInformation buffer, based on shape being passed in
        Parameters:
        shape -
        Returns:
      • createShapeInformation

        Pair<DataBuffer,​long[]> createShapeInformation​(long[] shape,
                                                             char order,
                                                             DataType dataType)
        This method creates long shapeInformation buffer, based on shape & order being passed in
        Parameters:
        shape -
        Returns:
      • createShapeInformation

        Pair<DataBuffer,​long[]> createShapeInformation​(long[] shape,
                                                             long[] stride,
                                                             long elementWiseStride,
                                                             char order,
                                                             DataType dataType,
                                                             boolean empty)
        This method creates long shapeInformation buffer, based on detailed shape info being passed in
        Parameters:
        shape -
        Returns:
      • createShapeInformation

        Pair<DataBuffer,​long[]> createShapeInformation​(long[] shape,
                                                             long[] stride,
                                                             long elementWiseStride,
                                                             char order,
                                                             long extras)
      • purgeCache

        void purgeCache()
        This method forces cache purge, if cache is available for specific implementation
      • getCachedBytes

        long getCachedBytes()
        This method returns memory used for cache, in bytes
        Returns: