buildTensorflow
buildTensorflow copied to clipboard
Adding SubtractOperation and AverageOperation
- SubtractOperation allows subtraction between two tensors and enables gradient to flow through the subtraction
- AverageOperation allows taking the average of a vector of tensors and enables gradient to flow through the average
The average operation will be useful in computing losses across a batch of data.