Method and apparatus for calculating tensor data with computer, medium, and device
Abstract
Embodiments of the present disclosure disclose a method and apparatus for calculating tensor data based on a computer, a medium, and a device. The method includes: determining, from a second tensor, a dimension different from a dimension of a first tensor based on dimensions of the first tensor and dimensions of the second tensor; updating stride in the different dimension to a predetermined value; reading a to-be-operated data block of the second tensor from a buffer module based on updated stride with the predetermined value in each dimension of the second tensor, where the to-be-operated data block is a data block for which padding processing is performed; and performing binary operation on the first tensor based on the to-be-operated data block of the second tensor. According to the present disclosure, broadcasting may be conveniently achieved without difficulty of hardware design being increased.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for calculating tensor data using a data processing chip of a computer, including: determining a first dimension of a second tensor different from a corresponding dimension of a first tensor based on dimensions of the first tensor and dimensions of the second tensor; updating, by means of compiling, a stride value associated with the first dimension of the second tensor, wherein the stride value is a predetermined value; reading a target data block of the second tensor from a buffer module based on an updated stride value that is equal to the predetermined value in each dimension of t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (26)
Non-Patent Literature (5)
- Chen, Tianqu et al.; “TVM: An Automated End-to-End Optimizing Compiler for Deep Learning”; arXiv:1802.04799v3 [cs.LG] Oct. 5, 2018 (airXiv.org).
- Cowan et al., “Automatic Generation of High-Performance Quantized Machine Learning Kernels”; In Proceedings of the 18th ACM/IEEE International Symposium on Code Generation and Optimization (CGO '20), Feb. 22-26, 2020, San Diego, CA, USA. ACM, New York, NY, USA, 12 pages.
- Extended Search Report in corresponding European Patent Application No. 20944539.4 dated Sep. 8, 2023.
- International Search Report (in English and Chinese) and Written Opinion of the International Searching Authority (Chinese) issued in PCT/CN2020/131064, dated Apr. 9, 2021; ISA/CN.
- Kenji Nakakuki, Introduction to Python for Scientific and Technical Computing, 1st Edition, Japan, Gijutsu Hyoronsha, Inc, Oct. 25, 2016, pp. 242-246 (with English translation provided by Chinable).