Articles on Trending Technologies

Technical articles with clear explanations and examples

How to move a Torch Tensor from CPU to GPU and vice versa?

Shahid Akhtar Khan
Shahid Akhtar Khan
Updated on 06-Nov-2023 26K+ Views

A torch tensor defined on CPU can be moved to GPU and vice versa. For high-dimensional tensor computation, the GPU utilizes the power of parallel computing to reduce the compute time.High-dimensional tensors such as images are highly computation-intensive and takes too much time if run over the CPU. So, we need to move such tensors to GPU.SyntaxTo move a torch tensor from CPU to GPU, following syntax/es are used −Tensor.to("cuda:0") or Tensor.to(cuda)And, Tensor.cuda()To move a torch tensor from GPU to CPU, the following syntax/es are used −Tensor.to("cpu")And, Tensor.cpu()Let's take a couple of examples to demonstrate how a tensor can be ...

Read More

How to install the MSI file using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 06-Nov-2023 25K+ Views

To install the MSI file with PowerShell, we can use cmdlet Start-Process.Let say we want to install the 7ZIP MSI file on the local computer and we have downloaded and stored the source file on the C:\temp location. Once we run the below command it will start the MSI installation.Start-Process C:\Temp\7z1900-x64.msiThe above command will open the GUI to install the MSI file but we use PowerShell to avoid GUI interaction so we can add the argument to install the file.If you check which arguments are available to run the MSI file, use the below command.C:\Temp\7z1900-x64.msi /?It will popup box like ...

Read More

How is RSA Algorithm Calculated?

Ginni
Ginni
Updated on 04-Nov-2023 22K+ Views

RSA is a cryptosystem for public-key encryption, and it is broadly used for securing sensitive information, specifically when being sent over an insecure network including the Internet.RSA algorithm is the most popular asymmetric key cryptographic algorithm depends on the mathematical fact that it is simply to discover and multiply large prime numbers but complex to factor their product. It needs both private and public key.Example of RSA AlgorithmLet us take an example of this procedure to learn the concepts. For ease of reading, it can write the example values along with the algorithm steps.Choose two large prime numbers P and ...

Read More

What are Instruction Formats?

Ginni
Ginni
Updated on 04-Nov-2023 33K+ Views

Instruction includes a set of operation codes and operands that manage with the operation codes. Instruction format supports the design of bits in an instruction. It contains fields including opcode, operands, and addressing mode.The instruction length is generally preserved in multiples of the character length, which is 8 bits. When the instruction length is permanent, several bits are assigned to opcode, operands, and addressing modes.The function of allocating bits in the instruction can be interpreted by considering the following elements −Number of addressing modesNumber of operandsNumber of CPU registersNumber of register setsNumber of address linesThe figure displayed the general IA-32 ...

Read More

How to add the user to the local Administrators group using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 04-Nov-2023 45K+ Views

To add the AD user or the local user to the local Administrators group using PowerShell, we need to use the Add-LocalGroupMember command.To add the local user to the local Administrators group, Add-LocalGroupMember -Group Administrators -Member TestUser -VerboseThe above command will add TestUser to the local Administrators group. You can provide any local group name there and any local user name instead of TestUserYou can also add the Active Directory domain user to the Local Administrators group by providing the domain name if the computer is in the same domain.For example, we will add the Beta user from the AutomationLab ...

Read More

Explain attributes and the different types of attributes in DBMS?

Bhanu Priya
Bhanu Priya
Updated on 04-Nov-2023 30K+ Views

Attributes are the properties which describe an entity. Example The attributes of student entity are as follows − Roll number Name Branch Age Types of attributes The different types of attributes are as follows − Composite attribute It can be divided into smaller sub parts, each sub part can form an independent attribute. For example −     ...

Read More

Difference between JFET and MOSFET

Manish Kumar Saini
Manish Kumar Saini
Updated on 03-Nov-2023 29K+ Views

There is a category of transistors called Field Effect Transistor (FET). In this category, a lot of field effect transistors are there like Junction Field Effect Transistor (JFET), Metal Oxide Field Effect Transistor (MOSFET), Metal Semiconductor Field Effect Transistor (MSFET), etc. In this article, we will compare and contrast the various features of JFET and MOSFET.What is JFET?JFET stands for junction field effect transistor. The JFET is a three terminal semiconductor device and the terminals are: Source (S), Drain (D) and Gate (G). JFET has a channel between source and drain. The channel is the path between the source and ...

Read More

Difference between Synchronous Motor and Induction Motor

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 03-Nov-2023 45K+ Views

A motor in general is an electrical machine that converts electrical energy into mechanical energy. Electric motors can either be DC Motors or AC Motors, depending on the type of power supply that is supplied as its input.AC motors are further classified into two types−Asynchronous or Induction MotorSynchronous MotorA synchronous motor always runs at synchronous speed, while an induction motor runs at a speed less than the synchronous speed.Read through this article to find out more about synchronous motors and induction motors and how they are different from each other.What is a Synchronous Motor?A synchronous motor is a type of ...

Read More

Testing of Transformer | Type Tests, Routine Tests and Special Tests of Transformer

Manish Kumar Saini
Manish Kumar Saini
Updated on 03-Nov-2023 31K+ Views

An electrical transformer is tested at the transformer manufacturer premises and at the consumer’s site and also periodically in regular and emergency basis during its service life to confirm its specifications and performance.Types of Transformer TestsTests of transformer done at the manufacturer’s premises −Type testsRoutine testsSpecial testsTests of transformer done at the consumer’s site −Pre-commissioning testsPeriodic testsEmergency testsType Tests of TransformerThe type tests of a transformer are performed at the manufacturer’s premises to prove the design expectations and consumer’s specifications. The type tests are performed in a prototype unit, not in all manufactured units and these tests confirm the basic ...

Read More

What are Instruction Codes and Operands in Computer Architecture?

Ginni
Ginni
Updated on 03-Nov-2023 52K+ Views

A computer instruction is a binary code that determines the micro-operations in a sequence for a computer. They are saved in the memory along with the information. Each computer has its specific group of instructions.They can be categorized into two elements as Operation codes (Opcodes) and Address. Opcodes specify the operation for specific instructions. An address determines the registers or the areas that can be used for that operation. Operands are definite elements of computer instruction that show what information is to be operated on.It consists of 12 bits of memory that are required to define the address as the ...

Read More
Showing 33091–33100 of 61,297 articles
Advertisements