code: public long getMemoryBytes(MemoryType memoryType, int minibatchSize, MemoryUseMode memoryUseMode,
                      CacheMode cacheMode) {
          return getMemoryBytes(memoryType, minibatchSize, memoryUseMode, cacheMode, DataTypeUtil.getDtypeFromContext());
      }
docs: Get the memory estimate (in bytes) for the specified type of memory, using the current ND4J data type
  
  @param memoryType    Type of memory to get the estimate for invites
  @param minibatchSize Mini batch size to estimate the memory for
  @param memoryUseMode The memory use mode (training or inference)
  @param cacheMode     The CacheMode to use
  @return              Estimated memory use for the given memory type