MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / log10

Function log10

tensorpack/tfutils/symbolic_functions.py:57–61  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

55 maxp = float(maxp)
56
57 def log10(x):
58 with tf.name_scope("log10"):
59 numerator = tf.log(x)
60 denominator = tf.log(tf.constant(10, dtype=numerator.dtype))
61 return numerator / denominator
62
63 mse = tf.reduce_mean(tf.square(prediction - ground_truth))
64 if maxp is None:

Callers 1

psnrFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected