shlogg · Early preview
Super Kai (Kazuya Ito) @superkai_kazuya

Understanding Pow() In PyTorch For Efficient Tensor Operations

Learn how to use `pow()` in PyTorch with tensors and scalars. Get the power of a tensor or scalar raised to another tensor or scalar's value. Examples included!

Buy Me a Coffee☕
*Memos:

My post explains square().
My post explains float_power().
My post explains abs() and sqrt().
My post explains gcd() and lcm().
My post explains trace(), reciprocal() and rsqrt().

pow() can get  the 0D or more D tensor of zero or more powers from two of the 0D or more D tensors of zero or more elements or the 0D or more D tensor of zero or more elements and a scalar as shown below:
*Memos:

pow() can be used with torch or a tensor.
The 1st argument(input) with torch(Required-Type:tensor or scalar of int, float or complex) or using a tensor(Required-Type:tensor of in...