nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/memory/abstracts/DummyWorkspace.java
@Override
    public PagedPointer alloc(long requiredMemory, MemoryKind kind, DataBuffer.Type dataType, boolean initialize) {
        throw new UnsupportedOperationException("DummyWorkspace shouldn't be used for allocation");
    }
@Override
    public PagedPointer alloc(long requiredMemory, MemoryKind kind, DataBuffer.Type dataType, boolean initialize) {
        throw new UnsupportedOperationException("DummyWorkspace shouldn't be used for allocation");
    }
@ Override public PagedPointer alloc ( long requiredMemory , MemoryKind kind , DataBuffer . Type dataType , boolean initialize ) { throw new UnsupportedOperationException ( "DummyWorkspace shouldn't be used for allocation" ) ; }
This method does allocation from a given Workspace

@param requiredMemory allocation size, in bytes
@param kind           MemoryKind for allocation
@param dataType       dataType that is going to be used
@param initialize
@return
This method does allocation from a given Workspace