Class Batch<T extends Aggregate>
- java.lang.Object
-
- org.nd4j.linalg.api.ops.aggregates.Batch<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
append(T aggregate)
This method tries to append aggregate to the current batch, if it has free roomstatic <U extends Aggregate>
List<Batch<U>>getBatches(List<U> list)
Helper method to create batch from list of aggregates, for cases when list of aggregates is higher then batchLimitstatic <U extends Aggregate>
List<Batch<U>>getBatches(List<U> list, int partitionSize)
Helper method to create batch from list of aggregates, for cases when list of aggregates is higher then batchLimitboolean
isFull()
This method checks, if number of batched aggregates equals to maximum possible valueint
opNum()
This method returns opNum for batched aggregate
-
-
-
Method Detail
-
opNum
public int opNum()
This method returns opNum for batched aggregate- Returns:
-
append
public boolean append(T aggregate)
This method tries to append aggregate to the current batch, if it has free room- Parameters:
aggregate
-- Returns:
-
isFull
public boolean isFull()
This method checks, if number of batched aggregates equals to maximum possible value- Returns:
-
getBatches
public static <U extends Aggregate> List<Batch<U>> getBatches(List<U> list)
Helper method to create batch from list of aggregates, for cases when list of aggregates is higher then batchLimit- Type Parameters:
U
-- Parameters:
list
-- Returns:
-
-