IP Library Granted Patent US 11,662,992
Granted Patent B2
US 11,662,992 · App. 17/202,717 · Granted May 30, 2023

Algorithm downloading method, device, and related product

Inventor: Pu Chen (Shenzhen, CN)
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
G06F8/65G06F16/215G06F16/245G06Q20/145G06F8/60G06F8/61G06F8/62G06F8/64G06F16/285G06F16/319G06F16/334G06F16/903G06Q10/10G06Q20/3672H04L67/06H04L67/1095
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,662,992
App. No.
17/202,717
Granted
May 30, 2023
Kind
B2
Abstract

An algorithm download method, a device, and a related product. The method includes: obtaining an algorithm identifier of an algorithm and a capability description of a client; sending the algorithm identifier and the capability description to a cloud; and receiving a version code that is of the algorithm and that is returned by the cloud, where the version code is obtained by the cloud by searching based on the algorithm identifier and the capability description. According to the foregoing solution, an algorithm can be easily downloaded.

Claims (43)

1. A method comprising:

obtaining an algorithm identifier of an algorithm and a capability description of a client;

sending the algorithm identifier and the capability description to a cloud; and

receiving a version code that is of the algorithm and that is returned by the cloud, wherein the version code is obtained by the cloud by searching based on the algorithm identifier and the capability description, wherein the capability description comprises one or more of a floating-point operation capability and a processor type.

2. The method according to claim 1 , wherein before the obtaining of the algorithm identifier of the algorithm and the capability description of the client, the method further comprises:

receiving the algorithm identifier of the algorithm and a version description of the algorithm that are input by a user;

querying, based on the algorithm identifier and the version description, whether the algorithm has been deployed on the client, and the obtaining of the algorithm identifier of the algorithm and the capability description of the client further comprises:

when the algorithm is not deployed, obtaining the algorithm identifier of the algorithm and the capability description of the client.

3. The method according to claim 1 , wherein after the receiving of the version code that is of the algorithm and that is returned by the cloud, the method further comprises:

receiving an invocation request, wherein the invocation request is used to request to invoke the version code;

sending a target token to the cloud, and receiving a verification result obtained by the cloud by verifying the target token; and

when the verification result is that verification succeeds, allowing invocation of the version code.

4. The method according to claim 1 , wherein after the receiving of the version code that is of the algorithm and that is returned by the cloud, the method further comprises:

recording charging information of the version code, wherein the charging information comprises at least one of: a quantity of download times, a quantity of invocation times, or a quantity of forwarding times; and

sending the charging information of the version code to the cloud, so that the cloud calculates a usage fee of the version code based on the charging information.

5. The method according to claim 1 , wherein the capability description further comprises one or more of available storage space, available memory space.

6. The method according to claim 1 , further comprising:

running a program to test the floating-point operation capability of the client.

7. The method according to claim 5 , further comprising:

determining the available storage space by collecting statistics on used storage space and available storage space in real time.

8. The method according to claim 2 , wherein the version description includes a release time of the algorithm.

9. A method comprising:

receiving an algorithm identifier and a capability description that are sent by of a client;

determining a version code of an algorithm based on the algorithm identifier, the capability description, and a target correspondence, wherein the target correspondence is a mapping relationship between the algorithm identifier, the capability description, and the version code; and

returning the version code of the algorithm to the client.

10. The method according to claim 9 , wherein before the determining of the version code of the algorithm based on the algorithm identifier, the capability description, and the target correspondence, the method further comprises:

allocating the version code to a cloud node in a data amount balancing manner; or

allocating the version code to a cloud node in an access traffic balancing manner.

11. The method according to claim 10 , further comprising:

determining, according to a deduplication algorithm, whether there is a duplicate version of the version code; and

if there is a duplicate version, deleting the version code or the duplicate version.

12. The method according to claim 9 , wherein after the returning of the version code of the algorithm to the client, the method further comprises:

receiving charging information sent by the client, wherein the charging information comprises one or more of a quantity of download times, a quantity of invocation times, and a quantity of forwarding times; and

calculating a usage fee of the version code based on the charging information.

13. The method according to claim 9 , wherein the capability description comprises one or more of available storage space, available memory space, a floating-point operation capability, and a processor type.

14. A client, comprising a memory and a processor coupled to the memory, wherein the memory is configured to store program code, and the processor is configured to invoke the program code stored in the memory to perform a method comprising:

obtaining an algorithm identifier of an algorithm and a capability description of a client;

sending the algorithm identifier and the capability description to a cloud; and

receiving a version code that is of the algorithm and that is returned by the cloud, wherein the version code is obtained by the cloud by searching based on the algorithm identifier and the capability description, wherein the capability description comprises one or more of a floating-point operation capability and a processor type.

15. A device, comprising: a memory and a processor coupled to the memory, wherein the memory is configured to store program code, and the processor is configured to invoke the program code stored in the memory to perform a method comprising:

receiving an algorithm identifier and a capability description of a client;

determining a version code of an algorithm based on the algorithm identifier, the capability description, and a target correspondence, wherein the target correspondence is a mapping relationship between the algorithm identifier, the capability description, and the version code; and

returning the version code of the algorithm to the client.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 5, 2021
From: CHEN, PU
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 055821/0567 →
Priority Claims (1)
CN 201811089076.0 · Sep 18, 2018 · national
Continuity (2)
Continuation PCTCN2019094217 · Jul 1, 2019
Related Publication 20210200531A1 · Jul 1, 2021