docs: public SDVariable getGradient() {
          Preconditions.checkState(dataType().isFPType(), "Cannot get gradient of %s variable \"%s\": only floating" +
                  " point variables have gradients", getVarName(), dataType());
          return sameDiff.getGradForVariable(getVarName());
      }