code: func (co *Context) ScaleTensor(yDesc *TensorDescriptor, y Memory, alpha float64) error {
  	var alphaC unsafe.Pointer
  	switch yDesc.dataType {
  	case Float, Half:
  		var alphaF C.float
  		alphaF = C.float(float32(alpha))
  		alphaC = unsafe.Pointer(&alphaF)
  	case Double:
  		var alphaF C.double
  		alphaF = C.double(alpha)
  		alphaC = unsafe.Pointer(&alphaF)
  	default:
  		return errors.Errorf("Unsupported data type: %v", yDesc.dataType)
  	}
  	// call cudnnScaleTensor
  	return result(C.cudnnScaleTensor(co.internal, yDesc.internal, y.Pointer(), alphaC))
  }
docs: // ScaleTensor scale all the elements of a tensor by a given factor.
  //	y is both an input and output