Skip to content

Commit

Permalink
Merge branch 'main' into atqy-fix-byoc-rapids-sagemaker-hpo
Browse files Browse the repository at this point in the history
  • Loading branch information
atqy authored Aug 16, 2022
2 parents 358b1ba + aabd058 commit da1c102
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"fi\n",
"\n",
"# Get the login command from ECR and execute it directly\n",
"aws ecr get-login-password --region ${region}|docker login --username AWS --password-stdin ${fullname}\n",
"$(aws ecr get-login --region $region --registry-ids $account --no-include-email)\n",
"\n",
"# Build the docker image locally with the image name and then push it to ECR\n",
"# with the full name.\n",
Expand Down Expand Up @@ -176,6 +176,8 @@
"metadata": {},
"outputs": [],
"source": [
"! mkdir data\n",
"\n",
"# S3 bucket where the training data is located.\n",
"data_bucket = f\"sagemaker-sample-files\"\n",
"data_prefix = \"datasets/tabular/uci_heart_failure/\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"import sagemaker\n",
"import tensorflow as tf\n",
"\n",
"bucket = \"<your_bucket_name>\"\n",
"bucket = sagemaker.Session().default_bucket()\n",
"training_prefix = \"training\"\n",
"batch_input_prefix = \"batch_input\"\n",
"batch_output_prefix = \"batch_output\"\n",
Expand Down Expand Up @@ -292,7 +292,7 @@
"tf_serving_model = Model(\n",
" model_data=estimator.model_data,\n",
" role=sagemaker.get_execution_role(),\n",
" image=estimator.image_name,\n",
" image_uri=estimator.image_uri,\n",
" framework_version=estimator.framework_version,\n",
" sagemaker_session=estimator.sagemaker_session,\n",
")\n",
Expand Down

0 comments on commit da1c102

Please sign in to comment.