Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deployTFModel; Connect no longer supports hosting TensorFlow Model APIs #789

Closed
wants to merge 1 commit into from

Conversation

aronatkins
Copy link
Contributor

No description provided.

@aronatkins aronatkins marked this pull request as draft March 21, 2023 16:56
@aronatkins aronatkins marked this pull request as ready for review March 21, 2023 17:05
#' @details
#'
#' @family Deployment functions
#' @export
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth keeping this function around with an informative error? Not that important but it is nice to know that it’s definitely gone away, rather than you forgetting the name of the function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kellobri - What are your thoughts about this? My feeling is that this content type saw so little use that there is almost no risk to fully removing the TF deploy function. I'm happy to retain a skeleton implementation that errs if it'll be helpful.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we saw extremely low usage. Errors are always nice though, I like the idea of the skeleton implementation if that's possible.

@@ -110,7 +110,7 @@ appDependencies <- function(appDir = getwd(), appFiles = NULL) {
}

needsR <- function(appMetadata) {
if (appMetadata$appMode %in% c("static", "tensorflow-saved-model")) {
if (appMetadata$appMode %in% c("static")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also remove the c and switch to ==

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered this, but the c reminds us that there might be more than one thing that is not R. I don't feel strongly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing that this function is not called for things other than static which don't need R? Perhaps it makes more sense to list the app does that do need R in that case, as it's more self-explanatory than requiring on this conditional + other conditionals elsewhere.

(I fell behind on @hadley's PRs when I had that two-week escalations stretch, so I recognize there may be context I'm missing here. I'll catch up on them when I'm done with server migration work.)

@@ -110,7 +110,7 @@ appDependencies <- function(appDir = getwd(), appFiles = NULL) {
}

needsR <- function(appMetadata) {
if (appMetadata$appMode %in% c("static", "tensorflow-saved-model")) {
if (appMetadata$appMode %in% c("static")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing that this function is not called for things other than static which don't need R? Perhaps it makes more sense to list the app does that do need R in that case, as it's more self-explanatory than requiring on this conditional + other conditionals elsewhere.

(I fell behind on @hadley's PRs when I had that two-week escalations stretch, so I recognize there may be context I'm missing here. I'll catch up on them when I'm done with server migration work.)

@aronatkins
Copy link
Contributor Author

Closing this PR; will push a new branch that maintains a defunct stub.

@aronatkins aronatkins closed this Mar 29, 2023
@aronatkins aronatkins deleted the aron-remove-tf branch March 29, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants