Class GpuBuffer
java.lang.Object
io.github.kirstenali.deepj.tensor.GpuBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfinal intbooleanfinal DTypefinal intbooleanfinal int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
public final int id -
rows
public final int rows -
cols
public final int cols -
dtype
-
needsUpload
public boolean needsUpload -
cpuStale
public boolean cpuStale -
allocatedOnGpu
public boolean allocatedOnGpu
-
-
Constructor Details
-
GpuBuffer
public GpuBuffer(int id, int rows, int cols, boolean needsUpload) -
GpuBuffer
-
-
Method Details
-
elementCount
public int elementCount() -
byteLength
public long byteLength() -
floatCount
public int floatCount()
-