latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.ldexp
- tensorplay.functional.ldexp(input, other, *, out=None) Tensor[source]
Multiplies
inputby 2 **other.Typically this function is used to construct floating point numbers by multiplying mantissas in
inputwith integral powers of two created from the exponents inother.- Parameters:
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> tensorplay.ldexp(tensorplay.tensor([1.]), tensorplay.tensor([1])) tensor([2.]) >>> tensorplay.ldexp(tensorplay.tensor([1.0]), tensorplay.tensor([1, 2, 3, 4])) tensor([ 2., 4., 8., 16.])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

