id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
google_protobuf/PredictionServiceCli_116_0.txt
The response includes the following HTTP headers:
google_protobuf/tabular_224_0.txt
def send_grpc_request(request): return grpc_stub.Predict(request, 60, metadata=grpc_metadata)
google_protobuf/comgooglecloudvertex_281_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_256_0.txt
# Set this to true only if you'd like to delete your bucket delete_bucket = False if delete_bucket or os.getenv("IS_TESTING"): !gsutil rm -r $BUCKET_URI
google_protobuf/comgooglecloudvertex_266_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_2_0.txt
close
google_protobuf/comgooglecloudvertex_289_0.txt
Sample code:
google_protobuf/comgooglecloudvertex_517_0.txt
**Returns** --- **Type** | **Description** ` [ BidiStreamingCallable ](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.BidiStreamingCallable.html) < [ StreamDirectRawPredictRequest ](/java/docs/reference/google-cloud- vertexai/latest/com.google.cloud.vertexai.api.StreamDirectRawPredictR...
google_protobuf/google_protobuf_21_4.txt
e. Return type : [ bool ](https://docs.python.org/3/library/functions.html#bool "\(in Python v3.10\)") Raises : [ **KeyError** ](https://docs.python.org/3/library/exceptions.html#KeyError "\(in Python v3.10\)") – if the extension is repeated. Similar to repeated fields, there is no separate notion of ...
google_protobuf/tabular_0_0.txt
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google_protobuf/tabular_237_0.txt
You can see that the Vertex AI Prediction optimized TensorFlow runtime has signficantly higher throughput and lower latency compared to TensorFlow 2.7.
google_protobuf/tabular_18_0.txt
Install additional packages Install additional package dependencies not installed in your notebook environment, such as TensorFlow Serving API, Vertex AI SDK.
google_protobuf/tabular_211_0.txt
health_url = tf_opt_gpu_endpoint_dict.deployed_models[ 0 ].private_endpoints.health_http_uri health_url
google_protobuf/google_protobuf_23_21.txt
ar to repeated fields, there is no separate notion of presence: a “not present” repeated extension is an empty list. ` HasField ` ( _field_name_ ) ¶ ` IS_EXTENSION_FIELD_NUMBER ` _= 2_ ¶ ` IsInitialized ` ( _errors=None_ ) ¶ Checks if all required fields of a message are set. Parameters : ...
google_protobuf/tabular_184_0.txt
model_service_client.list_models(parent=PARENT)
google_protobuf/google_protobuf_23_16.txt
ired fields of a message are set. Parameters : **errors** – A list which, if provided, will be populated with the field paths of all missing required fields. Returns : True iff the specified message has all required fields set. ` ListFields ` ( ) ¶ ` MergeFrom ` ( _msg_ ) ¶ ` MergeF...
google_protobuf/PredictionServiceCli_168_0.txt
` endpoint ` \- Required. The name of the Endpoint requested to serve the explanation. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` ` instances ` \- Required. The instances that are the input to the explanation call. A DeployedModel may have an upper limit on the number of instances it support...
google_protobuf/google_protobuf_12_0.txt
# google.protobuf.internal.containers ¶ Contains container classes to represent different protocol buffer types. This file defines container classes which represent categories of protocol buffer field types which need extra maintenance. Currently these categories are: * Repeated scalar fields - These are all rep...
google_protobuf/tabular_230_0.txt
tf_opt_lossy_gpu_results = benchmark_grpc_private_endpoint( tf_opt_lossy_gpu_endpoint, [10, 50, 100, 200, 300, 400, 500, 600, 700, 800] ) tf_opt_lossy_gpu_results
google_protobuf/tabular_56_0.txt
# The Vertex AI Workbench Notebook product has specific requirements IS_GOOGLE_CLOUD_NOTEBOOK = os.path.exists("/opt/deeplearning/metadata/env_version")
google_protobuf/google_protobuf_6_0.txt
# google.protobuf.descriptor_pool ¶ Provides DescriptorPool to use as a container for proto2 descriptors. The DescriptorPool is used in conjection with a DescriptorDatabase to maintain a collection of protocol buffer descriptors for use when dynamically creating message types at runtime. For most applications prot...
google_protobuf/604925_137_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/PredictionServiceCli_45_0.txt
Perform an online explanation.
google_protobuf/comgooglecloudvertex_379_0.txt
**Returns** --- **Type** | **Description** ` [ PredictionServiceClient.ListLocationsPagedResponse ](/java/docs/reference/google-cloud- vertexai/latest/com.google.cloud.vertexai.api.PredictionServiceClient.ListLocationsPagedResponse) ` |
google_protobuf/comgooglecloudvertex_9_0.txt
* [ Google Cloud Home ](https://cloud.google.com/) * [ Free Trial and Free Tier ](https://cloud.google.com/free) * [ Architecture Center ](https://cloud.google.com/architecture) * [ Blog ](https://cloud.google.com/blog) * [ Contact Sales ](https://cloud.google.com/contact) * [ Google Cloud Developer Center ](http...
google_protobuf/604925_151_0.txt
https://www.googlecloudcommunity.com/html/@17707BECA4EAD3896FBAF17C64C2ABD8/assets/gcc-linkedin.svg) LinkedIn
google_protobuf/tabular_111_0.txt
(Optional) Train and Save Estimator Model Another option to train a model is to use the TensorFlow Estimator API. For more information, see https://github.com/tensorflow/docs/blob/r2.4/site/en/tutorials/estimator/premade.ipynb
google_protobuf/tabular_77_0.txt
Download the dataset Follow the instructions at the Criteo website to download the data.
google_protobuf/comgooglecloudvertex_124_0.txt
Request object method variants only take one parameter, a request object, which must be constructed before the call.
google_protobuf/comgooglecloudvertex_29_1.txt
st/com.google.cloud.vertexai.api.IntegratedGradientsAttributionOrBuilder) * [ ListEndpointsRequestOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ListEndpointsRequestOrBuilder) * [ ListEndpointsResponseOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google...
google_protobuf/PredictionServiceCli_157_0.txt
Sample code:
google_protobuf/604925_183_0.txt
Top Solution Authors
google_protobuf/604925_29_0.txt
* [ Community Blogs ](/gc/Community-Blogs/bg-p/cloud-community-blog)
google_protobuf/comgooglecloudvertex_566_0.txt
* [ Google Cloud documentation ](/docs/) * [ Google Cloud quickstarts ](/docs/get-started/) * [ Google Cloud Marketplace ](/marketplace/) * [ Learn about cloud computing ](/discover/) * [ Support ](/support-hub/) * [ Code samples ](/docs/samples) * [ Cloud Architecture Center ](/architecture/) * [ Training ](/learn/tra...
google_protobuf/comgooglecloudvertex_159_0.txt
Request object method variants only take one parameter, a request object, which must be constructed before the call.
google_protobuf/tabular_61_0.txt
For Vertex AI Prediction to serve your model, it must be uploaded to Cloud Storage bucket first.
google_protobuf/PredictionServiceCli_124_0.txt
Throws:
google_protobuf/604925_3_0.txt
Preferences
google_protobuf/google_protobuf_23_4.txt
` RESERVED_RANGE_FIELD_NUMBER ` _= 4_ ¶ _static_ ` RegisterExtension ` ( _extension_handle_ ) ¶ ` SerializePartialToString ` ( _**kwargs_ ) ¶ ` SerializeToString ` ( _**kwargs_ ) ¶ ` SetInParent ` ( ) ¶ Sets the _cached_byte_size_dirty bit to true, and propagates this to o...
google_protobuf/604925_88_0.txt
[ Reply ]()
google_protobuf/comgooglecloudvertex_149_0.txt
* listLocationsCallable()
google_protobuf/comgooglecloudvertex_337_0.txt
**Parameter** --- **Name** | **Description** ` request ` | ` com.google.iam.v1.GetIamPolicyRequest `
google_protobuf/tabular_212_0.txt
!curl $health_url
google_protobuf/PredictionServiceCli_20_0.txt
See the individual methods for example code.
google_protobuf/google_protobuf_7_2.txt
aining_type ` ¶ Descriptor of the immediate containing type of this enum, or None if this is an enum defined at the top level in a .proto file. Set by Descriptor’s constructor if we’re passed into one. Type : Descriptor ` file ` ¶ Reference to file descriptor. Type : FileDescriptor ` o...
google_protobuf/comgooglecloudvertex_559_0.txt
Except as otherwise noted, the content of this page is licensed under the [ Creative Commons Attribution 4.0 License ](https://creativecommons.org/licenses/by/4.0/) , and code samples are licensed under the [ Apache 2.0 License ](https://www.apache.org/licenses/LICENSE-2.0) . For details, see the [ Google Developers Si...
google_protobuf/google_protobuf_7_1.txt
[ str ](https://docs.python.org/3/library/stdtypes.html#str "\(in Python v3.10\)") , FieldDescriptor ) ` is_extendable ` ¶ Does this type define any extension ranges? Type : [ bool ](https://docs.python.org/3/library/functions.html#bool "\(in Python v3.10\)") ` oneofs ` ¶ The list of descript...
google_protobuf/comgooglecloudvertex_202_0.txt
## Static Methods
google_protobuf/comgooglecloudvertex_25_0.txt
* [ Transport ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.Transport)
google_protobuf/comgooglecloudvertex_506_0.txt
### streamDirectPredictCallable()
google_protobuf/google_protobuf_21_3.txt
sage.Message "google.protobuf.message.Message") ) – A message to copy into the current one. ` DESCRIPTOR ` _= <google.protobuf.descriptor.Descriptor object> _ ¶ ` DiscardUnknownFields ` ( ) ¶ ` FindInitializationErrors ` ( ) ¶ Finds required fields which are not initialized. Returns : ...
google_protobuf/tabular_190_0.txt
tf_opt_lossy_gpu_endpoint_dict = { "display_name": "Criteo Kaggle optimized TensorFlow runtime GPU with lossy optimizations private endpoint", "network": full_network_name, } tf_opt_lossy_gpu_endpoint = ( endpoint_service_client.create_endpoint( parent=PARENT, endpoint=tf_opt_lossy_gpu_endpoint_dict ) .result(timeout=...
google_protobuf/comgooglecloudvertex_486_0.txt
### setIamPolicy(SetIamPolicyRequest request)
google_protobuf/tabular_36_0.txt
Set your project ID If you don't know your project ID, you can try to get your project ID using gcloud.
google_protobuf/PredictionServiceCli_12_0.txt
* * *
google_protobuf/comgooglecloudvertex_413_0.txt
public final PredictResponse predict(String endpoint, List<Value> instances, Value parameters)
google_protobuf/PredictionServiceCli_105_0.txt
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { PredictRequest request = PredictRequest.newBuilder() .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) .addAllInstances(new ArrayList<Value>()) .setParameters(Value.newBuilder().build()) .build();...
google_protobuf/comgooglecloudvertex_550_0.txt
**Returns** --- **Type** | **Description** ` com.google.iam.v1.TestIamPermissionsResponse ` |
google_protobuf/google_protobuf_16_0.txt
# google.protobuf.service_reflection ¶ Contains metaclasses used to create protocol service and service stub classes from ServiceDescriptor objects at runtime. The GeneratedServiceType and GeneratedServiceStubType metaclasses are used to inject all useful functionality into the classes output by the protocol compil...
google_protobuf/604925_138_0.txt
Update: if I use the CLI to send the request, there is also an error.
google_protobuf/comgooglecloudvertex_449_0.txt
* ` X-Vertex-AI-Endpoint-Id ` : ID of the Endpoint that served this prediction.
google_protobuf/google_protobuf_2_0.txt
# google.protobuf.text_encoding ¶ Encoding related utilities. ` google.protobuf.text_encoding. ` ` CEscape ` ( _text_ , _as_utf8_ ) ¶ Escape a bytes string for use in an text protocol buffer. Parameters : * **text** – A byte string to be escaped. * **as_utf8** – Specifies if result may conta...
google_protobuf/tabular_214_0.txt
def build_rest_request( row_dict, model_name="default", signature_name="serving_default" ): payload = json.dumps({"signature_name": signature_name, "inputs": row_dict}) return payload
google_protobuf/comgooglecloudvertex_340_0.txt
### getIamPolicyCallable()
google_protobuf/comgooglecloudvertex_409_0.txt
**Parameter** --- **Name** | **Description** ` request ` | ` [ PredictRequest ](/java/docs/reference/google-cloud- vertexai/latest/com.google.cloud.vertexai.api.PredictRequest) `
google_protobuf/comgooglecloudvertex_485_0.txt
**Returns** --- **Type** | **Description** ` [ ServerStreamingCallable ](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.ServerStreamingCallable.html) < [ StreamingPredictRequest ](/java/docs/reference/google-cloud- vertexai/latest/com.google.cloud.vertexai.api.StreamingPredictRequest) ...
google_protobuf/comgooglecloudvertex_73_0.txt
RawPredict
google_protobuf/604925_142_0.txt
[ Jump to Solution ](/gc/AI-ML/Vertex-AI-Getting-a-GRPC-Exception-when- sending-a-prediction/m-p/604925#M2198)
google_protobuf/tabular_162_0.txt
# NOTE: `prefix-length=16` means a CIDR block with mask /16 will be # reserved for use by Google services, such as Vertex AI. !gcloud compute addresses create $PEERING_RANGE_NAME \ --global \ --prefix-length=16 \ --description="peering range for Google service" \ --network=$NETWORK \ --purpose=VPC_PEERING
google_protobuf/comgooglecloudvertex_55_0.txt
Stay organized with collections Save and categorize content based on your preferences.
google_protobuf/comgooglecloudvertex_177_0.txt
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
google_protobuf/comgooglecloudvertex_421_0.txt
` parameters ` | ` [ Value ](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html) `
google_protobuf/comgooglecloudvertex_218_0.txt
### PredictionServiceClient(PredictionServiceSettings settings)
google_protobuf/tabular_83_0.txt
Read and transform the dataset Before the model can be trained, the variables must be pre-processed.
google_protobuf/comgooglecloudvertex_214_0.txt
Constructs an instance of PredictionServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(PredictionServiceSettings).
google_protobuf/comgooglecloudvertex_225_0.txt
## Methods
google_protobuf/comgooglecloudvertex_399_0.txt
` instances ` | ` [ List ](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) < [ Value ](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html) > `
google_protobuf/comgooglecloudvertex_231_0.txt
### close()
google_protobuf/google_protobuf_23_19.txt
then merges the specified message using MergeFrom. Parameters : **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> _ ¶ ` DiscardUnknow...
google_protobuf/comgooglecloudvertex_20_1.txt
er ](/java/docs/reference/google-cloud-recommender/latest/overview) * [ google-cloud-redis ](/java/docs/reference/google-cloud-redis/latest/overview) * [ google-cloud-redis-cluster ](/java/docs/reference/google-cloud-redis-cluster/latest/overview) * [ google-cloud-resource-settings ](/java/docs/reference/google-clo...
google_protobuf/comgooglecloudvertex_70_0.txt
* predict(String endpoint, List<Value> instances, Value parameters)
google_protobuf/PredictionServiceCli_158_0.txt
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); List<Value> instances = new ArrayList<>(); Value parameters = Value.newBuilder().build(); String deployedModelId = "deployedModelId-1817547906"; E...
google_protobuf/comgooglecloudvertex_408_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_513_0.txt
public final BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> streamDirectRawPredictCallable()
google_protobuf/tabular_189_0.txt
tf_opt_gpu_endpoint_dict = { "display_name": "Criteo Kaggle optimized TensorFlow runtime GPU private endpoint", "network": full_network_name, } tf_opt_gpu_endpoint = ( endpoint_service_client.create_endpoint( parent=PARENT, endpoint=tf_opt_gpu_endpoint_dict ) .result(timeout=300) .name ) tf_opt_gpu_endpoint
google_protobuf/PredictionServiceCli_102_0.txt
public final [PredictResponse](https://github.com/googleapis/java-/proto-google-cloud-aiplatform-v1/apidocs/com/google/cloud/aiplatform/v1/PredictResponse.html?is-external=true "class or interface in com.google.cloud.aiplatform.v1") predict([PredictRequest](https://github.com/googleapis/java-/proto-google-cloud-aiplatf...
google_protobuf/604925_170_0.txt
[ ](https://www.googlecloudcommunity.com/gc/forums/v5/forumtopicpage.kudosbuttonv2.kudoentity:kudoentity/kudosable- gid/604925?t:ac=board-id/cloud-ai-ml/message- id/2198&t:cp=kudos/contributions/tapletcontributionspage "Click here to give likes to this post.")
google_protobuf/comgooglecloudvertex_393_0.txt
public final PredictResponse predict(EndpointName endpoint, List<Value> instances, Value parameters)
google_protobuf/PredictionServiceCli_98_0.txt
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString(); List<Value> instances = new ArrayList<>(); Value parameters = Value.newBuilder().build(); PredictResponse response = predictionServiceClient....
google_protobuf/comgooglecloudvertex_369_0.txt
### isTerminated()
google_protobuf/PredictionServiceCli_48_0.txt
` [ PredictResponse ](https://github.com/googleapis/java-/proto-google-cloud- aiplatform-v1/apidocs/com/google/cloud/aiplatform/v1/PredictResponse.html?is- external=true "class or interface in com.google.cloud.aiplatform.v1") ` | ` [ predict ](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html#...
google_protobuf/comgooglecloudvertex_382_0.txt
Lists information about the supported locations for this service.
google_protobuf/604925_40_0.txt
Search instead for
google_protobuf/comgooglecloudvertex_304_0.txt
Sample code:
google_protobuf/604925_180_0.txt
Top Labels in this Space
google_protobuf/tabular_229_0.txt
tf_opt_gpu_results = benchmark_grpc_private_endpoint( tf_opt_gpu_endpoint, [10, 50, 100, 150, 200, 250, 275, 300, 325, 350] ) tf_opt_gpu_results
google_protobuf/604925_23_0.txt
* [ Learning & Certification Hub ](/gc/Learning-Certification-Hub/ct-p/cloud-learning-cert-forums)
google_protobuf/comgooglecloudvertex_479_0.txt
**Returns** --- **Type** | **Description** ` [ UnaryCallable ](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html) < [ RawPredictRequest ](/java/docs/reference/google-cloud- vertexai/latest/com.google.cloud.vertexai.api.RawPredictRequest) , com.google.api.HttpBody > ` |
google_protobuf/comgooglecloudvertex_543_0.txt
public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)
google_protobuf/google_protobuf_23_20.txt
ars the contents of a given extension. Parameters : **extension_handle** – The handle for the extension to clear. ` ClearField ` ( _field_name_ ) ¶ ` CopyFrom ` ( _other_msg_ ) ¶ Copies the content of the specified message into the current message. The method clears the current message and ...