Skip to main content

ParallelModelNeuralNetworkClient.SendAsync<TRequest> method

Submits a neural network job for the specified model.

public Task<JsonElement> SendAsync<TRequest>(Guid modelId, TRequest request, string computeSize,
string trainEncryptionKey, string testEncryptionKey, string outputEncryptionKey,
TimeSpan? timeout = default, CancellationToken cancellationToken = default)
where TRequest : class, IParallelModelNeuralNetworkSendRequest
parameterdescription
TRequestThe type of the job submission request.
modelIdThe model identifier.
requestThe job submission request containing the input and output configuration.
computeSizeThe compute size identifier sent with the request.
trainEncryptionKeyThe Base64 encryption key for the training data.
testEncryptionKeyThe Base64 encryption key for the test data.
outputEncryptionKeyThe Base64 encryption key for the output data or artifact.
timeoutAn optional timeout for the API request.
cancellationTokenA token used to cancel the asynchronous operation.

Return Value​

A task that returns the API response.

Exceptions​

exceptioncondition
ArgumentNullExceptionThe request is null.
ParallelModelConfigurationExceptionA required configuration value or identifier is invalid.

See Also​