id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
google_protobuf/tabular_220_0.txt | Please note that gRPC support in Vertex AI Prediction is still experimental. | |
google_protobuf/604925_67_0.txt | Post Options | |
google_protobuf/comgooglecloudvertex_216_0.txt | **Returns**
---
**Type** | **Description**
` [ PredictionServiceClient ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.PredictionServiceClient) ` | | |
google_protobuf/comgooglecloudvertex_444_0.txt | **Returns**
---
**Type** | **Description**
` com.google.api.HttpBody ` | | |
google_protobuf/comgooglecloudvertex_3_0.txt | * [ AI solutions, generative AI, and ML ](https://cloud.google.com/docs/ai-ml)
* [ Application development ](https://cloud.google.com/docs/application-development)
* [ Application hosting ](https://cloud.google.com/docs/application-hosting)
* [ Compute ](https://cloud.google.com/docs/compute-area)
* [ Data analytic... | |
google_protobuf/comgooglecloudvertex_232_0.txt | public final void close() | |
google_protobuf/comgooglecloudvertex_106_0.txt | Perform a streaming online prediction request to a gRPC model server for
custom containers. | |
google_protobuf/comgooglecloudvertex_170_0.txt | Returns permissions that a caller has on the specified resource. If
theresource does not exist, this will return an empty set ofpermissions, not a
` NOT_FOUND ` error. | |
google_protobuf/comgooglecloudvertex_134_0.txt | * generateContent(GenerateContentRequest request) | |
google_protobuf/604925_14_0.txt | * [ Data Analytics ](/gc/Data-Analytics/bd-p/cloud-data-analytics) | |
google_protobuf/comgooglecloudvertex_397_0.txt |
**Parameters**
---
**Name** | **Description**
` endpoint ` | ` [ EndpointName ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.EndpointName) ` | |
google_protobuf/604925_13_0.txt | * [ Databases ](/gc/Databases/bd-p/cloud-database) | |
google_protobuf/comgooglecloudvertex_391_0.txt |
**Returns**
---
**Type** | **Description**
` [ UnaryCallable
](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html)
< com.google.cloud.location.ListLocationsRequest , [
ListLocationsPagedResponse ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.verte... | |
google_protobuf/604925_176_0.txt | never-displayed | |
google_protobuf/604925_61_0.txt |  | |
google_protobuf/comgooglecloudvertex_153_0.txt | * getLocation(GetLocationRequest request) | |
google_protobuf/tabular_164_0.txt |
!gcloud services vpc-peerings connect \
--service=servicenetworking.googleapis.com \
--network=
PEERING_RANGE_NAME \
--project=$PROJECT_ID | |
google_protobuf/comgooglecloudvertex_129_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/604925_54_0.txt | https://www.googlecloudcommunity.com/html/@17707BECA4EAD3896FBAF17C64C2ABD8/assets/gcc-linkedin.svg) LinkedIn | |
google_protobuf/604925_117_0.txt | * [ View All Topics In this Discussion Space ](/gc/AI-ML/bd-p/cloud-ai-ml/page/40 "AI/ML")
* [ Previous Topic ](/gc/AI-ML/How-do-you-get-access-to-bard-Api/td-p/605111 "How do you get access to bard Api")
* [ Next Topic ](/gc/AI-ML/Vertex-AI-demo-error/td-p/602355 "Vertex AI demo error") | |
google_protobuf/PredictionServiceCli_123_0.txt | You can specify the schema for each instance in the
[predict_schemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
field when you create a [Model][google.cloud.aiplatform.v1.Model]. This schema
applies when you deploy the `Model` as a `DeployedModel` to an
[Endpoint][google.cloud... | |
google_protobuf/comgooglecloudvertex_41_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/604925_177_0.txt | Additional options | |
google_protobuf/comgooglecloudvertex_468_0.txt | A DeployedModel may have an upper limit on the number of instances it
supports per request. When this limit it is exceeded for an AutoML model, the
RawPredict method returns an error. When this limit is exceeded for a custom-
trained model, the behavior varies depending on the model. | |
google_protobuf/tabular_75_0.txt |
LOCAL_DIRECTORY = "~/criteo" # @param {type:"string"}
HIDDEN_LAYERS_STR = "2048,2048,1024,512,256" # @param {type:"string"} | |
google_protobuf/google_protobuf_14_0.txt | # google.protobuf.descriptor_database ¶
Provides a container for DescriptorProtos.
_class_ ` google.protobuf.descriptor_database. ` ` DescriptorDatabase ` ¶
A container accepting FileDescriptorProtos and maps DescriptorProtos.
` Add ` ( _file_desc_proto_ ) ¶
Adds the FileDescriptorProto and its typ... | |
google_protobuf/PredictionServiceCli_154_0.txt | public final [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([EndpointName](https://github.com/googleapis/java-/proto-google-cloud-aiplatfor... | |
google_protobuf/comgooglecloudvertex_460_0.txt | * ` X-Vertex-AI-Endpoint-Id ` : ID of the Endpoint that served this prediction. | |
google_protobuf/PredictionServiceCli_109_0.txt | public final com.google.api.gax.rpc.UnaryCallable<[PredictRequest](https://github.com/googleapis/java-/proto-google-cloud-aiplatform-v1/apidocs/com/google/cloud/aiplatform/v1/PredictRequest.html?is-external=true "class or interface in com.google.cloud.aiplatform.v1"),[PredictResponse](https://github.com/googleapis/java... | |
google_protobuf/comgooglecloudvertex_509_0.txt | Sample code: | |
google_protobuf/tabular_12_0.txt | Install and initialize the Cloud SDK. | |
google_protobuf/PredictionServiceCli_28_0.txt | * * ### Constructor Summary | |
google_protobuf/comgooglecloudvertex_569_0.txt | * English
* Deutsch
* Español – América Latina
* Français
* Português – Brasil
* 中文 – 简体
* 日本語
* 한국어 | |
google_protobuf/PredictionServiceCli_199_0.txt | public boolean awaitTermination(long duration,
[TimeUnit](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true "class or interface in java.util.concurrent") unit)
throws [InterruptedException](https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-exter... | |
google_protobuf/PredictionServiceCli_29_0.txt | Constructors Modifier | Constructor and Description
---|---
` protected ` | ` [ PredictionServiceClient
](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html#PredictionServiceClient-
com.google.cloud.aiplatform.v1.PredictionServiceSettings-) ( [
PredictionServiceSettings
](../../../../../com/... | |
google_protobuf/comgooglecloudvertex_162_0.txt | * setIamPolicyCallable() | |
google_protobuf/comgooglecloudvertex_269_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_365_0.txt | **Returns**
---
**Type** | **Description**
` [ PredictionServiceStub ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.stub.PredictionServiceStub) ` | | |
google_protobuf/comgooglecloudvertex_302_0.txt | Perform an online explanation. | |
google_protobuf/comgooglecloudvertex_228_0.txt | **Parameters**
---
**Name** | **Description**
` duration ` | ` [ long
](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) ` | |
google_protobuf/tabular_57_0.txt | # If on Vertex AI Workbench Notebooks, then don't execute this code
if not IS_GOOGLE_CLOUD_NOTEBOOK:
if "google.colab" in sys.modules:
from google.colab import auth as google_auth | |
google_protobuf/tabular_53_0.txt | Enter the path to your service account key as the GOOGLE_APPLICATION_CREDENTIALS variable in the following cell, then run the cell. | |
google_protobuf/604925_49_0.txt | Vertex AI: Getting a GRPC Exception when sending a prediction request in Java | |
google_protobuf/PredictionServiceCli_8_0.txt | com.google.cloud.aiplatform.v1 | |
google_protobuf/comgooglecloudvertex_546_0.txt | Sample code: | |
google_protobuf/comgooglecloudvertex_426_0.txt | Perform an online prediction. | |
google_protobuf/604925_27_0.txt | * [ Articles & Information ](/gc/Articles-Information/ct-p/cloud-community-articles) | |
google_protobuf/comgooglecloudvertex_317_0.txt | Generate content with multimodal inputs. | |
google_protobuf/comgooglecloudvertex_205_0.txt | Constructs an instance of PredictionServiceClient with default settings. | |
google_protobuf/comgooglecloudvertex_370_0.txt | public boolean isTerminated() | |
google_protobuf/PredictionServiceCli_169_0.txt | ` com.google.api.gax.rpc.ApiException ` \- if the remote call fails
* #### explain | |
google_protobuf/604925_136_0.txt | Post Options | |
google_protobuf/604925_55_0.txt | ](https://www.linkedin.com/shareArticle?mini=true&url=https://www.googlecloudcommunity.com/gc/AI-
ML/Vertex-AI-Getting-a-GRPC-Exception-when-sending-a-
prediction/m-p/604925&title=Vertex AI: Getting a GRPC Exception when sending a
prediction request in Java) [ | |
google_protobuf/comgooglecloudvertex_272_0.txt | The parameters that govern the prediction. The schema of the parameters may be
specified via Endpoint's DeployedModels' Model's PredictSchemata's
parameters_schema_uri . | |
google_protobuf/tabular_155_0.txt | To use a private endpoint, setup a VPC peering network between your project and the Vertex AI Prediction service project that is hosting VMs running your model. This eliminates additional hops in network traffic and allows using efficient gRPC protocol. | |
google_protobuf/comgooglecloudvertex_34_1.txt | equest.Builder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ListEndpointsRequest.Builder)
* [ ListEndpointsResponse ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ListEndpointsResponse)
* [ ListEndpointsResponse.Builder ](/java/docs/reference/go... | |
google_protobuf/comgooglecloudvertex_434_0.txt | * ` X-Vertex-AI-Endpoint-Id ` : ID of the Endpoint that served this prediction. | |
google_protobuf/comgooglecloudvertex_168_0.txt | * getIamPolicyCallable() | |
google_protobuf/PredictionServiceCli_87_0.txt | * #### predict | |
google_protobuf/PredictionServiceCli_125_0.txt | ` com.google.api.gax.rpc.ApiException ` \- if the remote call fails
* #### rawPredict | |
google_protobuf/PredictionServiceCli_76_0.txt | ` [ IOException ](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true "class or interface in java.io") `
* #### create | |
google_protobuf/google_protobuf_7_6.txt | f field.
` name ` ¶
Name of the oneof field.
Type :
[ str ](https://docs.python.org/3/library/stdtypes.html#str "\(in Python
v3.10\)")
` full_name ` ¶
Full name of the oneof field, including package name.
Type :
[ str ](https://docs.python.org/3/library/stdtypes.html#str "\(in Python
v... | |
google_protobuf/PredictionServiceCli_205_0.txt | * [ Prev Class ](../../../../../com/google/cloud/aiplatform/v1/PipelineServiceSettings.Builder.html "class in com.google.cloud.aiplatform.v1")
* [ Next Class ](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceSettings.html "class in com.google.cloud.aiplatform.v1") | |
google_protobuf/tabular_73_0.txt | import grpc
import numpy as np
import requests as r
import tensorflow as tf
from tensorflow_serving.apis import (predict_pb2, prediction_log_pb2,
prediction_service_pb2_grpc) | |
google_protobuf/tabular_228_0.txt |
tf27_gpu_results = benchmark_grpc_private_endpoint(
tf27_gpu_endpoint, [10, 20, 30, 40, 50, 60, 70, 75]
)
tf27_gpu_results | |
google_protobuf/comgooglecloudvertex_347_0.txt | public final Location getLocation(GetLocationRequest request) | |
google_protobuf/comgooglecloudvertex_465_0.txt | Required. The name of the Endpoint requested to serve the prediction. Format:
` projects/{project}/locations/{location}/endpoints/{endpoint} ` | |
google_protobuf/google_protobuf_7_3.txt | \(in Python
v3.10\)")
` cpp_type ` ¶
(One of the CPPTYPE_* constants below) C++ type used to represent this field.
Type :
[ int ](https://docs.python.org/3/library/functions.html#int "\(in Python
v3.10\)")
` label ` ¶
(One of the LABEL_* constants below) Tells whether this field is optional,
re... | |
google_protobuf/comgooglecloudvertex_89_0.txt | DirectPredict | |
google_protobuf/604925_4_0.txt | Browse | |
google_protobuf/comgooglecloudvertex_180_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/PredictionServiceCli_209_0.txt | * Detail:
* Field |
* Constr |
* Method | |
google_protobuf/PredictionServiceCli_143_0.txt |
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
RawPredictRequest request =
RawPredictRequest.newBuilder()
.setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
.setHttpBody(HttpBody.newBuilder().build())
.build();
HttpBody response = predictionSer... | |
google_protobuf/PredictionServiceCli_139_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/comgooglecloudvertex_12_0.txt | * [ Java ](https://cloud.google.com/java) | |
google_protobuf/604925_30_0.txt | * [ Cloud Product Articles ](/gc/Cloud-Product-Articles/tkb-p/cloud-articles) | |
google_protobuf/PredictionServiceCli_172_0.txt | If
[deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id]
is specified, the corresponding DeployModel must have
[explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec]
populated. If
[deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id]
is not sp... | |
google_protobuf/comgooglecloudvertex_371_0.txt | **Returns**
---
**Type** | **Description**
` [ boolean
](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) `
| | |
google_protobuf/comgooglecloudvertex_77_0.txt | * ` X-Vertex-AI-Deployed-Model-Id ` : ID of the Endpoint's DeployedModel that served this prediction. | |
google_protobuf/PredictionServiceCli_96_0.txt | Perform an online prediction. | |
google_protobuf/comgooglecloudvertex_388_0.txt | Lists information about the supported locations for this service. | |
google_protobuf/google_protobuf_21_2.txt | ing is a path to an uninitialized field from the
top-level message, e.g. “foo.bar[5].baz”.
_static_ ` FromString ` ( _s_ ) ¶
` HasExtension ` ( _extension_handle_ ) ¶
Checks if a certain extension is present for this message.
Extensions are retrieved using the ` Extensions ` mapping (if present).
... | |
google_protobuf/PredictionServiceCli_162_0.txt | public final [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([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-ext... | |
google_protobuf/tabular_122_0.txt |
def row_to_dict(row, wrap_values):
d = {}
for key, value in row[0].items():
if "int" in key:
d[key] = [wrap_value(v, wrap_values) for v in value.numpy().tolist()]
if "cat" in key:
d[key] = [
wrap_value(v.decode(), wrap_values) for v in value.numpy().tolist()
]
return d | |
google_protobuf/604925_156_0.txt | :
linear_feature_columns.append(
tf.feature_column.numeric_column(
column_name,
dtype=tf.dtypes.int64,
normalizer_fn=make_norm_fn(column_name),
)
) | |
google_protobuf/PredictionServiceCli_144_0.txt |
Parameters: | |
google_protobuf/604925_45_0.txt | Topic Options | |
google_protobuf/comgooglecloudvertex_538_0.txt | Perform a streaming online prediction request through gRPC. | |
google_protobuf/tabular_167_0.txt | add echo before the command in the cell above (echo gcloud services vpc-peering ...).
run the cell and copy its output
start new terminal window, and run gcloud auth login to authenticate using your user account.
paste and run the copied command in the terminal.
Check the status of your peering connections. | |
google_protobuf/tabular_104_0.txt |
model.fit(read_gcs(batch_size=256).take(1000), epochs=3) | |
google_protobuf/comgooglecloudvertex_10_0.txt | * English
* Deutsch
* Español – América Latina
* Français
* Português – Brasil
* 中文 – 简体
* 日本語
* 한국어 | |
google_protobuf/comgooglecloudvertex_17_0.txt | * [ Overview ](/java/docs/reference)
* Library reference docs | |
google_protobuf/comgooglecloudvertex_488_0.txt | Sets the access control policy on the specified resource. Replacesany existing
policy. | |
google_protobuf/PredictionServiceCli_191_0.txt | Specified by: | |
google_protobuf/comgooglecloudvertex_364_0.txt | public PredictionServiceStub getStub() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.