id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
google_protobuf/604925_189_0.txt | [  rif 
](/gc/user/viewprofilepage/user-id/373391) | |
google_protobuf/comgooglecloudvertex_133_0.txt | Request object method variants only take one parameter, a request object,
which must be constructed before the call. | |
google_protobuf/tabular_71_0.txt | Import libraries and define constants | |
google_protobuf/comgooglecloudvertex_47_0.txt | * [ ChatSession ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.generativeai.ChatSession)
* [ Constants ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.generativeai.Constants)
* [ ContentMaker ](/java/docs/reference/google-cloud-vertexai/latest/com.google.c... | |
google_protobuf/PredictionServiceCli_159_0.txt |
Parameters: | |
google_protobuf/tabular_11_0.txt | The Google Cloud SDK
Git
Python 3
virtualenv
Jupyter notebook running in a virtual environment with Python 3
The Google Cloud guide to Setting up a Python development environment and the Jupyter installation guide provide detailed instructions for meeting these requirements. The following steps are condensed instructio... | |
google_protobuf/google_protobuf_17_0.txt | # google.protobuf.message ¶
Contains an abstract base class for protocol messages.
_exception_ ` google.protobuf.message. ` ` DecodeError ` ¶
Exception raised when deserializing messages.
` args ` ¶
` with_traceback ` ( ) ¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and retu... | |
google_protobuf/comgooglecloudvertex_384_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_201_0.txt | To get the best performance, be sure the VM is in the same region as your model. | |
google_protobuf/PredictionServiceCli_60_0.txt | ` com.google.api.gax.rpc.UnaryCallable< [ RawPredictRequest
](https://github.com/googleapis/java-/proto-google-cloud-
aiplatform-v1/apidocs/com/google/cloud/aiplatform/v1/RawPredictRequest.html?is-
external=true "class or interface in com.google.cloud.aiplatform.v1")
,com.google.api.HttpBody> ` | ` [ rawPredictCallabl... | |
google_protobuf/604925_173_0.txt | Post Reply | |
google_protobuf/tabular_87_0.txt | "cat18": 5652,
"cat19": 2172,
"cat20": 3,
"cat21": 7046546,
"cat22": 17,
"cat23": 15,
"cat24": 286180,
"cat25": 104,
"cat26": 142571,
} | |
google_protobuf/comgooglecloudvertex_338_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/604925_71_0.txt | When I try to get a prediction in Java with the following code: | |
google_protobuf/comgooglecloudvertex_118_0.txt | Perform a streaming online prediction request through gRPC. | |
google_protobuf/tabular_206_0.txt | The main goal of this benchmark is to measure model latency on different loads, and maximum throughput the model can handle. In order to find maximum throughput, gradually increase QPS until actual_qps stops increasing and latency increases dramatically. | |
google_protobuf/tabular_234_0.txt | fig, ax = plt.subplots(facecolor=(1, 1, 1))
ax.set_xlabel("QPS")
ax.set_ylabel("Latency(ms)")
for title, results in results_dict.items():
x = np.array(results[x_key])
y = np.array(results[y_key])
ax.plot(x, y, label=title)
ax.legend()
ax.axis(axis)
ax.set_title(f"Criteo model {y_key} latency, batch size 512")
return fi... | |
google_protobuf/tabular_102_0.txt |
model = create_keras_model_sequential() | |
google_protobuf/604925_15_0.txt | * [ Developer Tools ](/gc/Developer-Tools/bd-p/cloud-developer-tools) | |
google_protobuf/google_protobuf_18_1.txt | d already set in message, the value is appended if the field is
repeated. Otherwise, an error is raised.
Example:
a = MyProto()
a.repeated_field.append('test')
b = MyProto()
# Repeated fields are combined
text_format.Parse(repr(a), b)
text_format.Parse(repr(a), b) # repeated_fie... | |
google_protobuf/PredictionServiceCli_89_0.txt | Perform an online prediction. | |
google_protobuf/google_protobuf_7_5.txt | ol is used.
Type :
[ DescriptorPool
](descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool
"google.protobuf.descriptor_pool.DescriptorPool")
` CopyToProto ` ( _proto_ ) ¶
Copies this to a descriptor_pb2.FileDescriptorProto.
Parameters :
**proto** – An empty descriptor_pb2.File... | |
google_protobuf/comgooglecloudvertex_18_1.txt | querystorage/latest/overview)
* [ google-cloud-bigtable ](/java/docs/reference/google-cloud-bigtable/latest/overview)
* [ google-cloud-billing ](/java/docs/reference/google-cloud-billing/latest/overview)
* [ google-cloud-billingbudgets ](/java/docs/reference/google-cloud-billingbudgets/latest/overview)
* [ google-cl... | |
google_protobuf/604925_149_0.txt | https://www.googlecloudcommunity.com/html/@7EEB446AFD303232B17DB09B0B668FB1/assets/sharelog.png) Share this topic | |
google_protobuf/comgooglecloudvertex_396_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_107_0.txt | ` request ` \- The request object containing all of the parameters for the API call.
Throws: | |
google_protobuf/comgooglecloudvertex_422_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/comgooglecloudvertex_332_0.txt | ### getIamPolicy(GetIamPolicyRequest request) | |
google_protobuf/google_protobuf_3_7.txt | e.protobuf.descriptor ](descriptor.html)
* [ google.protobuf.descriptor_database ](descriptor_database.html)
* [ google.protobuf.descriptor_pb2 ](descriptor_pb2.html)
* [ google.protobuf.descriptor_pool ](descriptor_pool.html)
* [ google.protobuf.duration_pb2 ](duration_pb2.html)
* [ google.protobuf.empty_pb2... | |
google_protobuf/comgooglecloudvertex_109_0.txt | StreamingPredict | |
google_protobuf/tabular_147_0.txt | The following clients are used in this sample: | |
google_protobuf/tabular_60_0.txt | Create a Cloud Storage bucket
The following steps are required for all notebook environments. | |
google_protobuf/comgooglecloudvertex_179_0.txt | To customize credentials: | |
google_protobuf/604925_10_0.txt | * [ Gemini Code Assist ](/gc/Gemini-Code-Assist/bd-p/cloud-duet-ai) | |
google_protobuf/PredictionServiceCli_21_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_0_0.txt | [  ](/) | |
google_protobuf/tabular_215_0.txt |
def benchmark_rest_private_endpoint(
endpoint_name, qps_list, model_name=None, duration_seconds=5
):
endpoint_dict = endpoint_service_client.get_endpoint(name=endpoint_name)
predict_uri = endpoint_dict.deployed_models[0].private_endpoints.predict_http_uri | |
google_protobuf/comgooglecloudvertex_496_0.txt | public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable() | |
google_protobuf/comgooglecloudvertex_139_0.txt | StreamGenerateContent | |
google_protobuf/tabular_5_0.txt | The steps performed include: | |
google_protobuf/comgooglecloudvertex_386_0.txt | ### listLocationsPagedCallable() | |
google_protobuf/PredictionServiceCli_179_0.txt | Perform an online explanation. | |
google_protobuf/comgooglecloudvertex_503_0.txt | public void shutdown() | |
google_protobuf/604925_36_0.txt | All community This category This board Knowledge base Users cancel | |
google_protobuf/PredictionServiceCli_26_0.txt |
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
PredictionServiceClient predictionServiceClient =
PredictionServiceClient.create(predictionServiceSettings); | |
google_protobuf/google_protobuf_3_1.txt | ¶
` FindInitializationErrors ` ( ) ¶
Finds required fields which are not initialized.
Returns :
A list of strings. Each string is a path to an uninitialized field from the
top-level message, e.g. “foo.bar[5].baz”.
_static_ ` FromString ` ( _s_ ) ¶
` HasExtension ` ( _extension_hand... | |
google_protobuf/comgooglecloudvertex_285_0.txt | ### explain(String endpoint, List<Value> instances, Value parameters, String
deployedModelId) | |
google_protobuf/comgooglecloudvertex_75_0.txt | The response includes the following HTTP headers: | |
google_protobuf/comgooglecloudvertex_166_0.txt | * getIamPolicy(GetIamPolicyRequest request) | |
google_protobuf/comgooglecloudvertex_553_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_295_0.txt | ` parameters ` | ` [ Value
](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html)
` | |
google_protobuf/PredictionServiceCli_16_0.txt |
try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
List<Value> instances = new ArrayList<>();
Value parameters = Value.newBuilder().build();
PredictResponse response = predictionServiceClient.predi... | |
google_protobuf/tabular_216_0.txt | def send_rest_request(request):
res = r.post(predict_uri, data=request)
assert res.status_code == 200
return res | |
google_protobuf/comgooglecloudvertex_507_0.txt | public final BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse> streamDirectPredictCallable() | |
google_protobuf/PredictionServiceCli_166_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();
String deployedModelId = "deployedModelId-181754790... | |
google_protobuf/tabular_249_0.txt | You can see that the average results are different for less than 0.0016%. In the worst case the difference is 0.05%. | |
google_protobuf/comgooglecloudvertex_542_0.txt | ### testIamPermissions(TestIamPermissionsRequest request) | |
google_protobuf/604925_161_0.txt | Post Options | |
google_protobuf/comgooglecloudvertex_217_0.txt | ## Constructors | |
google_protobuf/604925_150_0.txt |  | |
google_protobuf/google_protobuf_1_1.txt | s :
The provided descriptor.
Return type :
[ EnumDescriptor ](descriptor.html#google.protobuf.descriptor.EnumDescriptor
"google.protobuf.descriptor.EnumDescriptor")
` RegisterFileDescriptor ` ( _file_descriptor_ ) ¶
Registers the given file descriptor in the local database.
Parameters :
... | |
google_protobuf/comgooglecloudvertex_219_0.txt | protected PredictionServiceClient(PredictionServiceSettings settings) | |
google_protobuf/comgooglecloudvertex_497_0.txt | Sets the access control policy on the specified resource. Replacesany existing
policy. | |
google_protobuf/tabular_108_0.txt |
model.save(os.path.join(LOCAL_DIRECTORY_FULL, "keras"), include_optimizer=False) | |
google_protobuf/comgooglecloudvertex_297_0.txt | ` deployedModelId ` | ` [ String
](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) ` | |
google_protobuf/PredictionServiceCli_145_0.txt | ` request ` \- The request object containing all of the parameters for the API call.
Throws: | |
google_protobuf/comgooglecloudvertex_493_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/tabular_65_0.txt |
if BUCKET_URI == "" or BUCKET_URI is None or BUCKET_URI == "gs://[your-bucket-name]":
BUCKET_URI = "gs://" + PROJECT_ID + "aip-" + TIMESTAMP | |
google_protobuf/comgooglecloudvertex_475_0.txt | * ` X-Vertex-AI-Endpoint-Id ` : ID of the Endpoint that served this prediction. | |
google_protobuf/comgooglecloudvertex_210_0.txt | **Parameter**
---
**Name** | **Description**
` settings ` | ` [ PredictionServiceSettings ](/java/docs/reference/google-
cloud-vertexai/latest/com.google.cloud.vertexai.api.PredictionServiceSettings)
` | |
google_protobuf/PredictionServiceCli_71_0.txt | * ### Method Detail | |
google_protobuf/comgooglecloudvertex_381_0.txt | public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable() | |
google_protobuf/PredictionServiceCli_150_0.txt | * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this prediction.
* `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this prediction. | |
google_protobuf/comgooglecloudvertex_432_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/comgooglecloudvertex_222_0.txt |
### PredictionServiceClient(PredictionServiceStub stub) | |
google_protobuf/PredictionServiceCli_170_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([ExplainRequest](https://github.com/googleapis/java-/proto-google-cloud-aiplatf... | |
google_protobuf/604925_175_0.txt | Preview Exit Preview | |
google_protobuf/comgooglecloudvertex_511_0.txt |
**Returns**
---
**Type** | **Description**
` [ BidiStreamingCallable
](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.BidiStreamingCallable.html)
< [ StreamDirectPredictRequest ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.StreamDirectPredictRequest... | |
google_protobuf/comgooglecloudvertex_96_0.txt | Perform an unary online prediction request to a gRPC model server for custom
containers. | |
google_protobuf/comgooglecloudvertex_287_0.txt | Perform an online explanation. | |
google_protobuf/tabular_125_0.txt | If you want to export requests for the Estimator model, you must set wrap_values to False. | |
google_protobuf/604925_155_0.txt | ](http://twitter.com/share?text=Vertex AI: Getting a GRPC Exception when
sending a prediction request in
Java&url=https://www.googlecloudcommunity.com/gc/AI-ML/Vertex-AI-Getting-a-
GRPC-Exception-when-sending-a-prediction/m-p/604925) | |
google_protobuf/tabular_165_0.txt | If you receive a permission error when running this command, then try running it with your user account. | |
google_protobuf/PredictionServiceCli_99_0.txt |
Parameters: | |
google_protobuf/tabular_251_0.txt |
def cleanup(endpoint, model_name, deployed_model_id):
response = endpoint_service_client.undeploy_model(
endpoint=endpoint, deployed_model_id=deployed_model_id
)
print("running undeploy_model operation:", response.operation.name)
print(response.result()) | |
google_protobuf/604925_89_0.txt | 1 ACCEPTED SOLUTION | |
google_protobuf/comgooglecloudvertex_345_0.txt |
**Returns**
---
**Type** | **Description**
` [ UnaryCallable
](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html)
< com.google.iam.v1.GetIamPolicyRequest , com.google.iam.v1.Policy > ` | | |
google_protobuf/comgooglecloudvertex_127_0.txt | * explain(EndpointName endpoint, List<Value> instances, Value parameters, String deployedModelId) | |
google_protobuf/tabular_94_0.txt |
def make_norm_fn(column_name):
avg = NUM_AVERAGE[column_name]
stddev = NUM_STDDEV[column_name]
return lambda v: (tf.dtypes.cast(v, tf.float32) - avg) / stddev | |
google_protobuf/PredictionServiceCli_52_0.txt | ` 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/tabular_244_0.txt | return np.array(responses) | |
google_protobuf/PredictionServiceCli_183_0.txt |
* #### close | |
google_protobuf/comgooglecloudvertex_175_0.txt | * testIamPermissionsCallable() | |
google_protobuf/comgooglecloudvertex_23_0.txt | * [ Package summary ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai)
* Classes | |
google_protobuf/604925_64_0.txt | Post Options | |
google_protobuf/tabular_231_0.txt | Combine and visualize results. | |
google_protobuf/604925_131_0.txt | [ Roborg ](https://www.googlecloudcommunity.com/gc/user/viewprofilepage/user-
id/433041)  |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.