fillTensorGPU function

void fillTensorGPU(
  1. GPUTensor tensor,
  2. double value,
  3. CommandBuffer tape
)

Implementation

void fillTensorGPU(GPUTensor tensor, double value, CommandBuffer tape) {
  tape.putInt(OP_FILL);
  tape.putString(tensor.id);
  tape.putFloat(value);
}