GPUTensor<T>.empty constructor

GPUTensor<T>.empty(
  1. List<int> initialShape, {
  2. GPUNode? creator,
})

Implementation

GPUTensor.empty(List<int> initialShape, {this.creator}) : id = _generateId() {
  shape = <int>[];
  for (int i = 0; i < initialShape.length; i = i + 1) {
    shape.add(initialShape[i]);
  }
  _allocateEmptyInVram();
}