org.nd4j.linalg.memory.stash.Stash Maven / Gradle / Ivy
package org.nd4j.linalg.memory.stash;
import org.nd4j.linalg.api.ndarray.INDArray;
/**
* This interface describe short-living storage, with pre-defined life time.
*
* @author [email protected]
*/
public interface Stash {
boolean checkIfExists(T key);
void put(T key, INDArray object);
INDArray get(T key);
void purge();
}