MCPcopy Create free account
hub / github.com/NVIDIA/DALI / log2

Function log2

dali/python/nvidia/dali/math.py:80–86  ·  view source on GitHub ↗

Computes logarithm (base-2) of values in `input`. :rtype: TensorList of log2(input). If input is an integer, the result will be float, otherwise the type is preserved.

(input)

Source from the content-addressed store, hash-verified

78
79
80def log2(input) -> _DataNode:
81 """Computes logarithm (base-2) of values in `input`.
82
83 :rtype: TensorList of log2(input). If input is an integer, the result will be float,
84 otherwise the type is preserved.
85 """
86 return _arithm_op("log2", input)
87
88
89def log10(input) -> _DataNode:

Callers 2

math_overloads.hFile · 0.50
operator()Method · 0.50

Calls 1

_arithm_opFunction · 0.70

Tested by

no test coverage detected