id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
google_protobuf/comgooglecloudvertex_441_0.txt | The prediction input. Supports HTTP headers and arbitrary data payload. | |
google_protobuf/604925_148_0.txt |  | |
google_protobuf/comgooglecloudvertex_464_0.txt |
**Parameters**
---
**Name** | **Description**
` endpoint ` | ` [ String
](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) ` | |
google_protobuf/comgooglecloudvertex_61_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_138_0.txt |
export_warmup_file(
[
os.path.join(LOCAL_DIRECTORY_FULL, "requests", "requests_1_1.jsonl"),
os.path.join(LOCAL_DIRECTORY_FULL, "requests", "requests_1_512.jsonl"),
],
os.path.join(
LOCAL_DIRECTORY_FULL, "keras", "assets.extra", "tf_serving_warmup_requests"
),
) | |
google_protobuf/604925_52_0.txt | https://www.googlecloudcommunity.com/html/@7EEB446AFD303232B17DB09B0B668FB1/assets/sharelog.png) Share this topic | |
google_protobuf/comgooglecloudvertex_156_0.txt | SetIamPolicy | |
google_protobuf/comgooglecloudvertex_415_0.txt | Sample code: | |
google_protobuf/comgooglecloudvertex_207_0.txt | ### create(PredictionServiceSettings settings) | |
google_protobuf/comgooglecloudvertex_540_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/google_protobuf_7_0.txt | # google.protobuf.descriptor ¶
Descriptors essentially contain exactly the information found in a .proto
file, in types that make this information accessible in Python.
_class_ ` google.protobuf.descriptor. ` ` Descriptor ` ( _name_ , _full_name_
, _filename_ , _containing_type_ , _fields_ , _nested_types_ , _enum... | |
google_protobuf/tabular_124_0.txt |
export_requests_jsonl(
os.path.join(LOCAL_DIRECTORY_FULL, "requests", "requests_1_1.jsonl"),
rows=1,
batch_size=1,
)
export_requests_jsonl(
os.path.join(LOCAL_DIRECTORY_FULL, "requests", "requests_1_512.jsonl"),
rows=1,
batch_size=512,
)
export_requests_jsonl(
os.path.join(LOCAL_DIRECTORY_FULL, "requests", "requests_1... | |
google_protobuf/604925_135_0.txt | Reply posted on \--/--/---- --:-- AM | |
google_protobuf/PredictionServiceCli_113_0.txt |
* #### rawPredict | |
google_protobuf/comgooglecloudvertex_549_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/604925_113_0.txt | [ Jump to Solution ](/gc/AI-ML/Vertex-AI-Getting-a-GRPC-Exception-when-
sending-a-prediction/m-p/604925#M2198) | |
google_protobuf/PredictionServiceCli_181_0.txt | Sample code: | |
google_protobuf/comgooglecloudvertex_185_0.txt |
Please refer to the GitHub repository's samples for more quickstart code
snippets. | |
google_protobuf/comgooglecloudvertex_491_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_67_0.txt | * predict(PredictRequest request) | |
google_protobuf/comgooglecloudvertex_30_0.txt | * [ SampledShapleyAttributionOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.SampledShapleyAttributionOrBuilder)
* [ SchemaOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.SchemaOrBuilder)
* [ SegmentOrBuilder ](/java/docs/referen... | |
google_protobuf/comgooglecloudvertex_274_0.txt | If specified, this ExplainRequest will be served by the chosen DeployedModel,
overriding Endpoint.traffic_split . | |
google_protobuf/comgooglecloudvertex_223_0.txt | protected PredictionServiceClient(PredictionServiceStub stub) | |
google_protobuf/PredictionServiceCli_14_0.txt | Service Description: A service for online predictions and explanations. | |
google_protobuf/PredictionServiceCli_85_0.txt | * #### getStub | |
google_protobuf/tabular_208_0.txt | Details about deployed models can be accessed using the endpoint_service_client.get_endpoint API: | |
google_protobuf/604925_69_0.txt | Hi, | |
google_protobuf/604925_121_0.txt | https://www.googlecloudcommunity.com/html/@7EEB446AFD303232B17DB09B0B668FB1/assets/sharelog.png) Share this topic | |
google_protobuf/comgooglecloudvertex_249_0.txt | Perform an unary online prediction request to a gRPC model server for custom
containers. | |
google_protobuf/comgooglecloudvertex_143_0.txt | ListLocations | |
google_protobuf/google_protobuf_10_0.txt | Page Not Found
# 404
Sorry, we can't find that page.
| |
google_protobuf/comgooglecloudvertex_311_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_336_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_194_0.txt | [ Object.getClass()
](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) | |
google_protobuf/tabular_123_0.txt |
def export_requests_jsonl(file_name, rows=100, batch_size=64, wrap_values=True):
with tf.io.gfile.GFile(file_name, mode="w") as f:
for row in read_gcs(batch_size):
d = row_to_dict(row, wrap_values)
f.write(json.dumps(d))
f.write("\n")
rows -= 1
if rows == 0:
break | |
google_protobuf/comgooglecloudvertex_204_0.txt | public static final PredictionServiceClient create() | |
google_protobuf/PredictionServiceCli_46_0.txt | ` [ PredictionServiceSettings
](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceSettings.html
"class in com.google.cloud.aiplatform.v1") ` | ` [ getSettings
](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html#getSettings--)
() `
` [ PredictionServiceStub
](../../../../../com/goo... | |
google_protobuf/tabular_151_0.txt | Setup private endpoint for online prediction
The throughput and latency of the Criteo model you trained is sensitive to network performance. | |
google_protobuf/604925_116_0.txt | [ Reply ]() | |
google_protobuf/tabular_63_0.txt | You can change the REGION variable, which is used for operations throughout the rest of this notebook. We suggest that you choose a region where Vertex AI services are available. | |
google_protobuf/comgooglecloudvertex_116_0.txt | * serverStreamingPredictCallable() | |
google_protobuf/PredictionServiceCli_195_0.txt | ` isTerminated ` in interface ` com.google.api.gax.core.BackgroundResource `
* #### shutdownNow | |
google_protobuf/PredictionServiceCli_36_0.txt | ` static [ PredictionServiceClient
](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html
"class in com.google.cloud.aiplatform.v1") ` | ` [ create
](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html#create-
com.google.cloud.aiplatform.v1.stub.PredictionServiceStub-) ( [
... | |
google_protobuf/comgooglecloudvertex_178_0.txt | This class can be customized by passing in a custom instance of
PredictionServiceSettings to create(). For example: | |
google_protobuf/604925_153_0.txt | ") – if the message cannot be found in the pool.
` FindMethodByName ` ( _full_name_ ) ¶
Loads the named service method descriptor from the pool.
Parameters :
**full_name** ( [ _str_ ](https://docs.python.org/3/library/stdtypes.html#str
"\(in Python v3.10\)") ) – The full name of the method descripto... | |
google_protobuf/PredictionServiceCli_194_0.txt | Specified by: | |
google_protobuf/PredictionServiceCli_156_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/PredictionServiceCli_5_0.txt | * [ All Classes ](../../../../../allclasses-noframe.html) | |
google_protobuf/604925_17_0.txt | * [ Google Kubernetes Engine (GKE) ](/gc/Google-Kubernetes-Engine-GKE/bd-p/cloud-google-kubernetes-engine) | |
google_protobuf/tabular_121_0.txt |
def wrap_value(value, wrap_value):
if wrap_value:
return [value]
else:
return value | |
google_protobuf/comgooglecloudvertex_318_0.txt | Sample code: | |
google_protobuf/google_protobuf_3_4.txt | ent message and 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> _ ¶
... | |
google_protobuf/PredictionServiceCli_190_0.txt | public boolean isShutdown() | |
google_protobuf/comgooglecloudvertex_552_0.txt | public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable() | |
google_protobuf/comgooglecloudvertex_190_0.txt | ## Inherited Members | |
google_protobuf/comgooglecloudvertex_244_0.txt | Sample code: | |
google_protobuf/PredictionServiceCli_207_0.txt | * [ All Classes ](../../../../../allclasses-noframe.html) | |
google_protobuf/604925_21_0.txt | * [ Groups ](/gc/grouphubs/page/node-display-id/category:cloud-groups) | |
google_protobuf/PredictionServiceCli_173_0.txt | Sample code: | |
google_protobuf/tabular_156_0.txt | For more information about private endpoints, see https://cloud.google.com/vertex-ai/docs/predictions/using-private-endpoints. | |
google_protobuf/tabular_127_0.txt | (Optional) Generate warmup requests
The TensorFlow runtime has components that are lazily initialized. Lazy initialization might result in high latency for the first requests that are sent to a model after it's loaded. This latency can be several orders of magnitude higher than that of a single inference request. | |
google_protobuf/tabular_185_0.txt | Create endpoints
Learn more about endpoint_service.create_endpoint. | |
google_protobuf/comgooglecloudvertex_344_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_534_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/604925_47_0.txt | Solved
 | |
google_protobuf/comgooglecloudvertex_279_0.txt | If deployed_model_id is specified, the corresponding DeployModel must have
explanation_spec populated. If deployed_model_id is not specified, all
DeployedModels must have explanation_spec populated. | |
google_protobuf/tabular_188_0.txt |
tf27_gpu_endpoint_dict = {
"display_name": "Criteo Kaggle TF2.7 GPU private endpoint",
"network": full_network_name,
}
tf27_gpu_endpoint = (
endpoint_service_client.create_endpoint(
parent=PARENT, endpoint=tf27_gpu_endpoint_dict
)
.result(timeout=300)
.name
)
tf27_gpu_endpoint | |
google_protobuf/google_protobuf_21_1.txt | .
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> _ ¶
` DiscardUnknownFields ` ( ) ¶
` FindInitializationError... | |
google_protobuf/604925_110_0.txt | I have found an open issue on this topic: [
https://issuetracker.google.com/issues/234474507
](https://issuetracker.google.com/issues/234474507) | |
google_protobuf/tabular_236_0.txt |
fig = build_graph(
"actual_qps",
"p99",
{
"TF2.7 CPU": tf27_cpu_results,
"TF2.7 GPU": tf27_gpu_results,
"TF opt GPU": tf_opt_gpu_results,
"TF opt GPU lossy": tf_opt_lossy_gpu_results,
},
(0, 800, 0, 100),
)
fig.savefig("criteo_p99_latency_512.png", bbox_inches="tight") | |
google_protobuf/comgooglecloudvertex_502_0.txt | ### shutdown() | |
google_protobuf/comgooglecloudvertex_209_0.txt | Constructs an instance of PredictionServiceClient, using the given settings.
The channels are created based on the settings passed in, or defaults for any
settings that are not set. | |
google_protobuf/PredictionServiceCli_24_0.txt |
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
PredictionServiceClient predictionServiceClient =
PredictionServiceClient.create(predictionServiceSettings); | |
google_protobuf/google_protobuf_20_1.txt | ized. JSON messages over this depth will fail to be deserialized. Default value is 100.
Returns :
The same message passed as argument.
Raises::
ParseError: On JSON parsing problems.
` google.protobuf.json_format. ` ` ParseDict ` ( _js_dict_ , _message_ ,
_ignore_unknown_fields=False_ , _descriptor_p... | |
google_protobuf/604925_98_0.txt | https://www.googlecloudcommunity.com/html/@B5A22F3583793003F868672DC13DF92B/assets/logotwitter.png) Twitter | |
google_protobuf/comgooglecloudvertex_537_0.txt | public final BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredictCallable() | |
google_protobuf/google_protobuf_22_2.txt |
Whether the extension is present for this message.
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. Simi... | |
google_protobuf/tabular_47_0.txt | Otherwise, follow these steps: | |
google_protobuf/google_protobuf_7_4.txt |
` TYPE_FLOAT ` _= 2_ ¶
` TYPE_GROUP ` _= 10_ ¶
` TYPE_INT32 ` _= 5_ ¶
` TYPE_INT64 ` _= 3_ ¶
` TYPE_MESSAGE ` _= 11_ ¶
` TYPE_SFIXED32 ` _= 15_ ¶
` TYPE_SFIXED64 ` _= 16_ ¶
` TYPE_SINT32 ` _= 17_ ¶
` TYPE_SINT64 ` _= 18_ ¶
` TYPE_STRING ` _= 9_ ¶
... | |
google_protobuf/PredictionServiceCli_117_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_131_0.txt | GenerateContent | |
google_protobuf/comgooglecloudvertex_519_0.txt | public final ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse> streamGenerateContentCallable() | |
google_protobuf/tabular_116_0.txt |
tf.compat.v1.disable_eager_execution() # You'll have to restart Runtime after running this
spec_dict = {}
for column_name in COLUMN_NAMES:
if column_name.startswith("int"):
spec_dict[column_name] = tf.compat.v1.placeholder(
name=column_name, shape=(1,), dtype=tf.int64
)
if column_name.startswith("cat"):
spec_dict[col... | |
google_protobuf/PredictionServiceCli_18_0.txt | The surface of this class includes several types of Java methods for each of
the API's methods: | |
google_protobuf/comgooglecloudvertex_504_0.txt | ### shutdownNow() | |
google_protobuf/comgooglecloudvertex_390_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_470_0.txt | **Returns**
---
**Type** | **Description**
` com.google.api.HttpBody ` | | |
google_protobuf/PredictionServiceCli_35_0.txt | Constructs an instance of PredictionServiceClient, using the given settings. | |
google_protobuf/comgooglecloudvertex_82_0.txt | * rawPredict(String endpoint, HttpBody httpBody) | |
google_protobuf/604925_132_0.txt | Bronze 3 | |
google_protobuf/604925_60_0.txt | https://www.googlecloudcommunity.com/html/@BA4B8F5B12739C28A35AEDB252AA7576/assets/google-
copy-url-icon.png) Copy URL | |
google_protobuf/comgooglecloudvertex_429_0.txt |
**Returns**
---
**Type** | **Description**
` [ UnaryCallable
](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html)
< [ PredictRequest ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.PredictRequest) , [
PredictResponse ](/java/docs/refer... | |
google_protobuf/PredictionServiceCli_81_0.txt | @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future")
public static final [PredictionServiceClient](../../../../../com/google/cloud/aiplatform/v1/PredictionServiceClient.html "class in com.google.cloud.aiplatform.v1") create([PredictionServiceStub](../../../../../com/google/cloud... | |
google_protobuf/tabular_32_0.txt | Enable the Cloud DNS API. | |
google_protobuf/comgooglecloudvertex_102_0.txt | Perform a streaming 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.