Initializes shape and element values with the tensor.
@override void setTensor(Tensor<double> tensor) { tensorShape = tensor.tensorShape; elements.setAll(0, tensor.elements); }