id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
google_protobuf/604925_134_0.txt | * Mark as New
* Bookmark
* Subscribe
* Mute
* * [ Subscribe to RSS Feed ](https://www.googlecloudcommunity.com/rss/message?board.id=cloud-ai-ml&message.id=2189)
* * [ Permalink ](/gc/AI-ML/Vertex-AI-Getting-a-GRPC-Exception-when-sending-a-prediction/m-p/604520/highlight/true#M2189)
* [ Print ](/gc/forums/forumtopic... | |
google_protobuf/comgooglecloudvertex_350_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_353_0.txt | **Returns**
---
**Type** | **Description**
` com.google.cloud.location.Location ` | | |
google_protobuf/comgooglecloudvertex_31_1.txt | /reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ContainerRegistryDestination)
* [ ContainerRegistryDestination.Builder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ContainerRegistryDestination.Builder)
* [ Content ](/java/docs/reference/google-cloud-vertexai/... | |
google_protobuf/tabular_22_0.txt |
! pip3 install {USER_FLAG} --upgrade tensorflow==2.7.0 -q
! pip3 install {USER_FLAG} --upgrade tensorflow-serving-api==2.7.0 -q
! pip3 install {USER_FLAG} --upgrade google-cloud-aiplatform -q
! pip3 install {USER_FLAG} --upgrade google-cloud-storage -q | |
google_protobuf/tabular_181_0.txt |
tf_opt_lossy_gpu_model_dict = {
"display_name": "Criteo Kaggle optimized TensorFlow runtime GPU model with lossy optimizations",
"artifact_uri": BUCKET_URI,
"container_spec": {
"image_uri": "us-docker.pkg.dev/vertex-ai-restricted/prediction/tf_opt-gpu.nightly:latest",
"args": [
"--model_name=default",
"--allow_precomp... | |
google_protobuf/tabular_91_0.txt | return transformed_ds | |
google_protobuf/604925_18_0.txt | * [ Infrastructure: Compute, Storage, Networking ](/gc/Infrastructure-Compute-Storage/bd-p/cloud-infrastructure) | |
google_protobuf/PredictionServiceCli_100_0.txt | ` endpoint ` \- Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
` instances ` \- Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports ... | |
google_protobuf/comgooglecloudvertex_458_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/comgooglecloudvertex_135_0.txt | "Flattened" method variants have converted the fields of the request object
into function parameters to enable multiple ways to call the same method. | |
google_protobuf/604925_157_0.txt | https://www.googlecloudcommunity.com/html/@BA4B8F5B12739C28A35AEDB252AA7576/assets/google-
copy-url-icon.png) Copy URL | |
google_protobuf/PredictionServiceCli_22_0.txt | This class can be customized by passing in a custom instance of
PredictionServiceSettings to create(). For example: | |
google_protobuf/PredictionServiceCli_59_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/google_protobuf_23_9.txt | _ ¶
` DESCRIPTOR ` _= <google.protobuf.descriptor.Descriptor object> _ ¶
` DiscardUnknownFields ` ( ) ¶
` ENUM_TYPE_FIELD_NUMBER ` _= 5_ ¶
` EXTENSION_FIELD_NUMBER ` _= 7_ ¶
` FindInitializationErrors ` ( ) ¶
Finds required fields which are not initialized.
Returns :
... | |
google_protobuf/tabular_180_0.txt | tf_opt_gpu_model = (
model_service_client.upload_model(parent=PARENT, model=tf_opt_gpu_model_dict)
.result(timeout=180)
.model
)
tf_opt_gpu_model | |
google_protobuf/PredictionServiceCli_115_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/PredictionServiceCli_93_0.txt | ` endpoint ` \- Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
` instances ` \- Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports ... | |
google_protobuf/tabular_31_0.txt | Enable the Service Networking API. | |
google_protobuf/PredictionServiceCli_19_0.txt | 1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
2. A "request object" method. This type of method only ta... | |
google_protobuf/comgooglecloudvertex_107_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/PredictionServiceCli_176_0.txt | ` request ` \- The request object containing all of the parameters for the API call.
Throws: | |
google_protobuf/google_protobuf_22_1.txt | ameters :
**other_msg** ( [ _Message_ ](message.html#google.protobuf.message.Message
"google.protobuf.message.Message") ) – A message to copy into the current one.
` DESCRIPTOR ` _= <google.protobuf.descriptor.Descriptor object> _ ¶
` DiscardUnknownFields ` ( ) ¶
` FIELDS_FIELD_NUMBER ` _= 1_ ¶... | |
google_protobuf/comgooglecloudvertex_500_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/tabular_161_0.txt |
# This is for display only; you can name the range anything.
PEERING_RANGE_NAME = "vertex-ai-prediction-peering-range"
NETWORK = "default" | |
google_protobuf/comgooglecloudvertex_307_0.txt | ### generateContent(GenerateContentRequest request) | |
google_protobuf/comgooglecloudvertex_453_0.txt |
**Parameter**
---
**Name** | **Description**
` request ` | ` [ RawPredictRequest ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.RawPredictRequest) ` | |
google_protobuf/comgooglecloudvertex_115_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/PredictionServiceCli_146_0.txt | ` com.google.api.gax.rpc.ApiException ` \- if the remote call fails
* #### rawPredictCallable | |
google_protobuf/google_protobuf_4_1.txt | to true, and propagates this to our
listener iff this was a state change.
` ToDatetime ` ( _tzinfo=None_ ) ¶
Converts Timestamp to a datetime.
Parameters :
**tzinfo** – A datetime.tzinfo subclass; defaults to None.
Returns :
If tzinfo is None, returns a timezone-naive UTC datetime (with no t... | |
google_protobuf/google_protobuf_23_2.txt | r
"\(in Python v3.10\)") – if the extension is repeated. Similar to repeated
fields, there is no separate notion of presence: a “not present” repeated
extension is an empty list.
` HasField ` ( _field_name_ ) ¶
` IsInitialized ` ( _errors=None_ ) ¶
Checks if all required fields of a message are set.
... | |
google_protobuf/comgooglecloudvertex_555_0.txt | Sample code: | |
google_protobuf/comgooglecloudvertex_33_1.txt | .InputMetadataOverride.Builder)
* [ ExplanationMetadataProto ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExplanationMetadataProto)
* [ ExplanationParameters ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExplanationParameters)
* [ ExplanationPar... | |
google_protobuf/604925_111_0.txt | I have posted a workaround that also solves the bug in the Java SDK. | |
google_protobuf/604925_84_0.txt | * Labels:
* [ Vertex AI Platform ](/gc/forums/filteredbylabelpage/board-id/cloud-ai-ml/label-name/vertex%20ai%20platform) | |
google_protobuf/PredictionServiceCli_40_0.txt | ` [ ExplainResponse ](https://github.com/googleapis/java-/proto-google-cloud-
aiplatform-v1/apidocs/com/google/cloud/aiplatform/v1/ExplainResponse.html?is-
external=true "class or interface in com.google.cloud.aiplatform.v1") ` | ` [
explain
](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html#... | |
google_protobuf/comgooglecloudvertex_44_0.txt | * [ EndpointServiceStub ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.stub.EndpointServiceStub)
* [ EndpointServiceStubSettings ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.stub.EndpointServiceStubSettings)
* [ EndpointServiceStubSettings.Builde... | |
google_protobuf/PredictionServiceCli_203_0.txt | Skip navigation links | |
google_protobuf/tabular_78_0.txt | If the data is not available, you can download it using the URL below. | |
google_protobuf/604925_19_0.txt | * [ Integration Services ](/gc/Integration-Services/bd-p/cloud-integration-services) | |
google_protobuf/comgooglecloudvertex_239_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/tabular_187_0.txt |
tf27_cpu_endpoint_dict = {
"display_name": "Criteo Kaggle TF2.7 CPU private endpoint",
"network": full_network_name,
}
tf27_cpu_endpoint = (
endpoint_service_client.create_endpoint(
parent=PARENT, endpoint=tf27_cpu_endpoint_dict
)
.result(timeout=300)
.name
)
tf27_cpu_endpoint | |
google_protobuf/comgooglecloudvertex_171_0.txt | Note: This operation is designed to be used for buildingpermission-aware UIs
and command-line tools, not for authorizationchecking. This operation may
"fail open" without warning. | |
google_protobuf/tabular_82_0.txt |
!head -n 3 $LOCAL_DIRECTORY_FULL/data/train.txt | |
google_protobuf/604925_105_0.txt | Post Options | |
google_protobuf/tabular_219_0.txt | gRPC address is same as host name of predict_http_uri or predict_http_uri. gRPC destination has a format of <endpoint_id>-<deployed_model_id> and passed as a "grpc_destination" header. | |
google_protobuf/PredictionServiceCli_39_0.txt | Perform an online explanation. | |
google_protobuf/google_protobuf_6_1.txt | ( [ _str_ ](https://docs.python.org/3/library/stdtypes.html#str
"\(in Python v3.10\)") ) – The full name of the extension descriptor to load.
Returns :
The field descriptor for the named extension.
Return type :
[ FieldDescriptor ](descriptor.html#google.protobuf.descriptor.FieldDescriptor
"google.pro... | |
google_protobuf/comgooglecloudvertex_377_0.txt |
**Parameter**
---
**Name** | **Description**
` request ` | ` com.google.cloud.location.ListLocationsRequest ` | |
google_protobuf/tabular_120_0.txt |
!mkdir -p $LOCAL_DIRECTORY_FULL/requests | |
google_protobuf/comgooglecloudvertex_455_0.txt | **Returns**
---
**Type** | **Description**
` com.google.api.HttpBody ` | | |
google_protobuf/comgooglecloudvertex_191_0.txt | [ Object.clone()
](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) | |
google_protobuf/comgooglecloudvertex_567_0.txt | * [ Contact sales ](/contact/)
* [ Find a Partner ](//cloud.google.com/find-a-partner)
* [ Become a Partner ](/partners/become-a-partner/)
* [ Events ](/events/)
* [ Podcasts ](/podcasts/)
* [ Developer Center ](/developers/)
* [ Press Corner ](https://www.googlecloudpresscorner.com/)
* [ Google Cloud on YouTube ](//ww... | |
google_protobuf/tabular_85_0.txt |
COLUMN_NAMES = [
"label",
"int1",
"int2",
"int3",
"int4",
"int5",
"int6",
"int7",
"int8",
"int9",
"int10",
"int11",
"int12",
"int13",
"cat1",
"cat2",
"cat3",
"cat4",
"cat5",
"cat6",
"cat7",
"cat8",
"cat9",
"cat10",
"cat11",
"cat12",
"cat13",
"cat14",
"cat15",
"cat16",
"cat17",
"cat18",
"cat19",
"cat20",
"cat21",
"cat2... | |
google_protobuf/comgooglecloudvertex_515_0.txt | Sample code: | |
google_protobuf/604925_86_0.txt | [ 1 Like ](/gc/kudos/messagepage/board-id/cloud-ai-ml/message-
id/2093/tab/all-users "Click here to see who gave likes to this post.") | |
google_protobuf/tabular_7_0.txt | Costs
This tutorial uses the following billable components of Google Cloud: | |
google_protobuf/604925_59_0.txt |  * 100 | |
google_protobuf/PredictionServiceCli_198_0.txt | ` shutdownNow ` in interface ` com.google.api.gax.core.BackgroundResource `
* #### awaitTermination | |
google_protobuf/604925_123_0.txt | https://www.googlecloudcommunity.com/html/@17707BECA4EAD3896FBAF17C64C2ABD8/assets/gcc-linkedin.svg) LinkedIn | |
google_protobuf/comgooglecloudvertex_323_0.txt | Required. The content of the current conversation with the model. | |
google_protobuf/comgooglecloudvertex_482_0.txt | Perform a server-side streaming online prediction request for Vertex LLM
streaming. | |
google_protobuf/604925_44_0.txt | [ Log in to ask a question
](https://www.googlecloudcommunity.com/gc/user/userloginpage?dest_url=https%3A%2F%2Fwww.googlecloudcommunity.com%2Fgc%2FAI-
ML%2FVertex-AI-Getting-a-GRPC-Exception-when-sending-a-
prediction%2Fm-p%2F604925) | |
google_protobuf/tabular_149_0.txt | API_ENDPOINT = f"{REGION}-aiplatform.googleapis.com"
PARENT = f"projects/{PROJECT_ID}/locations/{REGION}" | |
google_protobuf/comgooglecloudvertex_564_0.txt | * [ Google Cloud pricing ](/pricing/)
* [ Google Workspace pricing ](//workspace.google.com/pricing.html)
* [ See all products ](/products/)
* ### Solutions | |
google_protobuf/comgooglecloudvertex_212_0.txt | ### create(PredictionServiceStub stub) | |
google_protobuf/tabular_186_0.txt |
project_number = re.match(r"projects/(\d+)/.+", tf27_cpu_model)[1]
full_network_name = f"projects/{project_number}/global/networks/{NETWORK}"
full_network_name | |
google_protobuf/google_protobuf_11_0.txt | # google.protobuf.proto_builder ¶
Dynamic Protobuf class creator.
` google.protobuf.proto_builder. ` ` MakeSimpleProtoClass ` ( _fields_ ,
_full_name=None_ , _pool=None_ ) ¶
Create a Protobuf class whose fields are basic types.
Note: this doesn’t validate field names!
Parameters :
* **fields** ... | |
google_protobuf/PredictionServiceCli_152_0.txt |
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
RawPredictRequest request =
RawPredictRequest.newBuilder()
.setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
.setHttpBody(HttpBody.newBuilder().build())
.build();
ApiFuture<HttpBody> future = pred... | |
google_protobuf/comgooglecloudvertex_140_0.txt | Generate content with multimodal inputs with streaming support. | |
google_protobuf/604925_140_0.txt | Returns | |
google_protobuf/PredictionServiceCli_200_0.txt | Specified by: | |
google_protobuf/tabular_199_0.txt | tf_opt_lossy_gpu_deployed_model = endpoint_service_client.deploy_model(
endpoint=tf_opt_lossy_gpu_endpoint,
deployed_model=tf_opt_lossy_gpu_deployed_model_dict,
).result()
tf_opt_lossy_gpu_deployed_model | |
google_protobuf/comgooglecloudvertex_236_0.txt | Sample code: | |
google_protobuf/604925_83_0.txt | Topic Labels | |
google_protobuf/comgooglecloudvertex_234_0.txt | public final DirectPredictResponse directPredict(DirectPredictRequest request) | |
google_protobuf/604925_92_0.txt | 
* [ google-cloud-cloudquotas ](/java/docs/reference/google-cloud-cloudquotas/latest/overview)
* [ google-cloud-cloudsupport ](/java/docs/reference/google-cloud-cloudsupport/latest/overview)
* [ google-clou... | |
google_protobuf/PredictionServiceCli_77_0.txt | public static final [PredictionServiceClient](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html "class in com.google.cloud.aiplatform.v1") create([PredictionServiceSettings](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceSettings.html "class in com.google.cloud.aiplatform.v1") s... | |
google_protobuf/comgooglecloudvertex_400_0.txt | Required. The instances that are the input to the prediction call. A
DeployedModel may have an upper limit on the number of instances it supports
per request, and when it is exceeded the prediction call errors in case of
AutoML Models, or, in case of customer created Models, the behaviour is as
documented by that Model... | |
google_protobuf/PredictionServiceCli_119_0.txt |
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
HttpBody httpBody = HttpBody.newBuilder().build();
HttpBody response = predictionServiceClient.rawPredict(endpoint, httpBody);
} | |
google_protobuf/tabular_195_0.txt | tf27_gpu_deployed_model = endpoint_service_client.deploy_model(
endpoint=tf27_gpu_endpoint, deployed_model=tf27_gpu_deployed_model_dict
).result()
tf27_gpu_deployed_model | |
google_protobuf/604925_139_0.txt | gcloud ai endpoints predict $ENDPOINT_ID --json-request=input.json --region=europe-west4 | |
google_protobuf/comgooglecloudvertex_74_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/comgooglecloudvertex_461_0.txt | * ` X-Vertex-AI-Deployed-Model-Id ` : ID of the Endpoint's DeployedModel that served this prediction. | |
google_protobuf/google_protobuf_24_0.txt | # google.protobuf.field_mask_pb2 ¶
Generated protocol buffer code.
_class_ ` google.protobuf.field_mask_pb2. ` ` FieldMask ` ( _**kwargs_ ) ¶
` AllFieldsFromDescriptor ` ( _message_descriptor_ ) ¶
Gets all direct fields of Message Descriptor to FieldMask.
` ByteSize ` ( ) ¶
` CanonicalFo... | |
google_protobuf/604925_5_0.txt | * [ Google Cloud ](/gc/Google-Cloud/ct-p/google-cloud)
* [ Google Workspace ](/gc/Google-Workspace/ct-p/google-workspace)
* [ AppSheet ](/gc/AppSheet/ct-p/appsheet)
* [ Looker ](/gc/Looker/ct-p/looker)
* [ Google Cloud Security ](/gc/Google-Cloud-Security/ct-p/googlecloud-security) | |
google_protobuf/comgooglecloudvertex_196_0.txt | [ Object.notify()
](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) | |
google_protobuf/PredictionServiceCli_75_0.txt | Throws: | |
google_protobuf/tabular_145_0.txt |
DEPLOY_COMPUTE = "n1-standard-16"
DEPLOY_GPU = aip.AcceleratorType.NVIDIA_TESLA_T4 | |
google_protobuf/comgooglecloudvertex_5_0.txt | close | |
google_protobuf/tabular_52_0.txt | Click Create. A JSON file that contains your key downloads to your local environment. | |
google_protobuf/tabular_148_0.txt | Model Service for managing models.
Endpoint Service for deployment. | |
google_protobuf/comgooglecloudvertex_235_0.txt | Perform an unary online prediction request to a gRPC model server for Vertex
first-party products and frameworks. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.