Skip to content

Commit

Permalink
Merge branch 'main' into mor--feature-store-batch-serve-to-df
Browse files Browse the repository at this point in the history
  • Loading branch information
morgandu authored Feb 3, 2022
2 parents c7c9c07 + 11d9af3 commit 472de1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions google/cloud/aiplatform/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ def export_model(
def upload_xgboost_model_file(
cls,
model_file_path: str,
xgboost_version: str = "1.4",
xgboost_version: Optional[str] = None,
display_name: str = "XGBoost model",
description: Optional[str] = None,
instance_schema_uri: Optional[str] = None,
Expand Down Expand Up @@ -2674,7 +2674,7 @@ def upload_xgboost_model_file(
container_image_uri = aiplatform.helpers.get_prebuilt_prediction_container_uri(
region=location,
framework="xgboost",
framework_version=xgboost_version,
framework_version=xgboost_version or "1.4",
accelerator="cpu",
)

Expand Down Expand Up @@ -2729,7 +2729,7 @@ def upload_xgboost_model_file(
def upload_scikit_learn_model_file(
cls,
model_file_path: str,
sklearn_version: str = "1.0",
sklearn_version: Optional[str] = None,
display_name: str = "Scikit-learn model",
description: Optional[str] = None,
instance_schema_uri: Optional[str] = None,
Expand Down Expand Up @@ -2869,7 +2869,7 @@ def upload_scikit_learn_model_file(
container_image_uri = aiplatform.helpers.get_prebuilt_prediction_container_uri(
region=location,
framework="sklearn",
framework_version=sklearn_version,
framework_version=sklearn_version or "1.0",
accelerator="cpu",
)

Expand Down Expand Up @@ -2923,7 +2923,7 @@ def upload_scikit_learn_model_file(
def upload_tensorflow_saved_model(
cls,
saved_model_dir: str,
tensorflow_version: str = "2.7",
tensorflow_version: Optional[str] = None,
use_gpu: bool = False,
display_name: str = "Tensorflow model",
description: Optional[str] = None,
Expand Down Expand Up @@ -3061,7 +3061,7 @@ def upload_tensorflow_saved_model(
container_image_uri = aiplatform.helpers.get_prebuilt_prediction_container_uri(
region=location,
framework="tensorflow",
framework_version=tensorflow_version,
framework_version=tensorflow_version or "2.7",
accelerator="gpu" if use_gpu else "cpu",
)

Expand Down

0 comments on commit 472de1e

Please sign in to comment.