public static final class DimensionSizes.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private int[] |
sizes |
Constructor and Description |
---|
Builder(int dimensions) |
Modifier and Type | Method and Description |
---|---|
DimensionSizes |
build()
Build this.
|
int |
dimensions()
Returns the number of dimensions this provides the size of
|
DimensionSizes.Builder |
set(int dimensionIndex,
int size) |
int |
size(int dimensionIndex)
Returns the length of this in the nth dimension
|
public DimensionSizes.Builder set(int dimensionIndex, int size)
public int size(int dimensionIndex)
IndexOutOfBoundsException
- if the index is larger than the number of dimensions in this tensor minus onepublic int dimensions()
public DimensionSizes build()
Copyright © 2017. All rights reserved.