摘要:
Embodiments of this application disclose a computation apparatus, method, system, circuit, and device, and a chip, to directly compute a vector in a compressed format, so that efficiency of computing the vector in the compressed format is improved. The computation apparatus includes a position coordinate comparison circuit and a logical operation circuit. The position coordinate comparison circuit is configured to compare position coordinates of an element value in a first vector with position coordinates of an element value in a second vector, to obtain a coordinate comparison result. The logical operation circuit is configured to compute the first element value and the second element value based on a first comparison result, to obtain a computation value; and output a computation result to a cache. The computation result is related to the computation value. In comparison with a conventional method in which a vector in a compressed format needs to be decompressed first, and then vector computation is performed on a decompressed vector, the computation apparatus can effectively improve efficiency of computing the vector in the compressed format.
摘要:
A method and an apparatus (1300) for determining mass of a vehicle, a device, and a medium are disclosed. The method specifically includes: obtaining a parameter set of a vehicle at a first moment, where the parameter set includes a steering angle of each wheel of the vehicle, a lateral velocity, a yawing angular velocity, and a longitudinal force and a lateral force of each wheel, and the parameter set is used to determine turning resistance of the vehicle; and determining mass of the vehicle based on the parameter set and a longitudinal dynamics model, where the longitudinal dynamics model describes a longitudinal force balance of the vehicle, and a longitudinal force applied to the vehicle includes the turning resistance.
摘要:
Embodiments of the present invention provide a method, a device, and a system for interactive video display, relate to the field of multimedia technologies, and can resolve a problem in the prior art that browsing experience of a user is not real because a visible region is simply changed only according to a panning change of a location of the user. A specific solution is: acquiring posture information of a user, where the posture information includes viewing angle information of the user and location information of the user; and adjusting, according to the posture information, an unadjusted visible region, in a video, for being displayed on a client, so as to obtain an adjusted visible region currently for being displayed on the client. The embodiments of the present invention are used for performing interactive video display.
摘要:
Embodiments of the present invention provide a method, a device, and a system for interactive video display, relate to the field of multimedia technologies, and can resolve a problem in the prior art that browsing experience of a user is not real because a visible region is simply changed only according to a panning change of a location of the user. A specific solution is: acquiring posture information of a user, where the posture information includes viewing angle information of the user and location information of the user; and adjusting, according to the posture information, an unadjusted visible region, in a video, for being displayed on a client, so as to obtain an adjusted visible region currently for being displayed on the client. The embodiments of the present invention are used for performing interactive video display.
摘要:
This application discloses a model processing method and a related apparatus, belongs to the field of artificial intelligence, and is used for model optimization. The method includes: obtaining a first model; splitting the first model to obtain at least one first subgraph; performing an optimization operation on the at least one first subgraph based on a genetic algorithm, to obtain at least one optimized second subgraph; and obtaining a second model based on the at least one second subgraph. In this way, manual operations are reduced during optimization, and a need for users to master professional performance optimization skills is lowered.
摘要:
Embodiments of the present invention disclose a fax switching method, an access device, and a fax system. The method includes: receiving, by an access node, a first initial call request message from a first terminal; responding, by the access node, to the first initial call request message, and sending a second initial call request message to a second terminal; receiving, by the access node, an initial call success response message returned by the second terminal, and determining, according to the initial call success response message, a fax capability supported by the second terminal; and after a media stream channel is established, detecting, by the access node, that the first terminal starts fax, and switching the media stream channel from an audio communication state to a fax state according to the fax capability supported by the second terminal. By using the method, the access device, and the fax system in the embodiments of the present invention, a problem that fax mode switching requires multiple negotiations, which wastes a network transmission resource and causes that a fax rate is reduced, may be solved.
摘要:
Embodiments of this application disclose a pull drift compensation assist system and a control method. The control method includes: determining status information of differential drive assist steering; and when differential drive assist steering works, performing pull drift compensation through differential drive assist steering; or when differential drive assist steering fails, performing pull drift compensation through electric power steering. The assist system includes a control module, a main compensation module, and an auxiliary compensation module that communicate with each other. In the technical solutions provided in embodiments of this application, compensation can be performed through differential drive assist steering, to effectively reduce occurrence of a long-time motor blocking phenomenon, reduce a motor fault risk, and reduce a motor performance deterioration degree. Compensation through differential drive assist steering may expand a hand force compensation range. Main/auxiliary system redundancy backup of differential drive assist steering and electric power steering may reduce a failure probability of pull drift compensation, and improve running safety of a vehicle. Long-term compensation and short-term compensation are performed concurrently, so that compensation for both deviation caused by an external factor and deviation caused by a factor of the vehicle may be implemented.
摘要:
A database repairing method and an electronic device are provided. The method includes: when a first database file is corrupted, obtaining data of at least one field in the first database file, and generating a first data table based on the data of the at least one field. The first data table exists in a second database file obtained through repairing. The at least one field may be predefined by an application. The at least one field may be a predefined field used to carry data that is important to a user. Therefore, when a database file is corrupted, some data may be obtained from the corrupted database file, to automatically repair the database. Therefore, interference to and impact on a user can be avoided as much as possible, and user experience can be improved.
摘要:
A method and a network device for transmitting a data stream are provided in the embodiments of the present invention. The present invention relates to the field of communications, can ensure the effective transmission of the data stream, and enhances the quality of service of the network. The method for transmitting a data stream includes: determining, according to a forwarding table, candidate forwarding ports for transmitting the data stream; determining, according to a priority level of the data stream and priority levels of the candidate forwarding ports, forwarding ports for transmitting the data stream; transmitting the data stream through a first forwarding port of the forwarding ports; when the first forwarding port is congested, transmitting the data stream through a second forwarding port of the forwarding ports. The embodiments of the present invention can be adopted to transmit the data stream.
摘要:
A method and a network device for transmitting a data stream are provided in the embodiments of the present invention. The present invention relates to the field of communications, can ensure the effective transmission of the data stream, and enhances the quality of service of the network. The method for transmitting a data stream includes: determining, according to a forwarding table, candidate forwarding ports for transmitting the data stream; determining, according to a priority level of the data stream and priority levels of the candidate forwarding ports, forwarding ports for transmitting the data stream; transmitting the data stream through a first forwarding port of the forwarding ports; when the first forwarding port is congested, transmitting the data stream through a second forwarding port of the forwarding ports. The embodiments of the present invention can be adopted to transmit the data stream.