Tensor Multiplication
5. Create a Compute Request for Matrix Multiplication
// Create operands for the compute request
ComputeRequest::ComputeOperationOperand operand1(
ComputeRequest::DataType::TENSOR,
ComputeRequest::DataEncrytionType::CIPHERTEXT,
serialized_ct1
);
ComputeRequest::ComputeOperationOperand operand2(
ComputeRequest::DataType::TENSOR,
ComputeRequest::DataEncrytionType::CIPHERTEXT,
serialized_ct2
);
// Define the compute operation instance
ComputeRequest::ComputeOperationInstance operation(
ComputeRequest::ComputeOperationType::BINARY,
ComputeRequest::ComputeOperation::MULTIPLY,
{ operand1, operand2 }
);
// Create the compute request
ComputeRequest req(operation);6. Send the Compute Request and Receive the Response
Last updated