
org.nd4j.jita.allocator.garbage.GarbageBufferReference Maven / Gradle / Ivy
The newest version!
package org.nd4j.jita.allocator.garbage;
import org.nd4j.jita.allocator.impl.AllocationPoint;
import org.nd4j.linalg.api.buffer.BaseDataBuffer;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
/**
* @author [email protected]
*/
public class GarbageBufferReference extends WeakReference {
private final AllocationPoint point;
public GarbageBufferReference(BaseDataBuffer referent, ReferenceQueue super BaseDataBuffer> q,
AllocationPoint point) {
super(referent, q);
this.point = point;
}
public AllocationPoint getPoint() {
return point;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy