torch.tan () function provides support for the torch function in PyTorch. It expects input in radians, and output is in the range [-∞, ∞]. Input type — tensor, and if the input contains more than one element, the element-wise tangent is calculated.
Syntax : torch.tan (x, out = None)
x : Input tensor
name (optional): Output tensor
Return type : A tensor with the same type as that of x.
Code # 1:
Output: p >
-1.5574 -1.1549 -0.8670 -0.6430 -0.4569 -0.2938 -0.1438 0.0000 0.1438 0.2938 0.4569 0.6430 0.8670 1.1549 1.5574 [torch.FloatTensor of size 15]
This book contains chapters authored by several leading experts in the field of cloud computing. The book is presented in a coordinated and integrated manner starting with the fundamentals and followe...
Executing Data Quality Projects: Ten Steps to Quality Data and Trusted Information (TM), 2nd Edition. Execute Data Quality Projects, Second Edition presents a structured yet flexible approach to cr...
Taking into account the development of modern programming, especially the emerging programming languages that reflect modern practice, Numerical Programming: A Practical Guide for Scientists and...
Managing and analyzing data have always offered the greatest benefits and the greatest challenges for organizations of all sizes and across all industries. Businesses have long struggled with finding ...