Home
last modified time | relevance | path

Searched refs:shifted_logits (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dsoftmax_op.cc63 auto shifted_logits = xla::Sub(logits, logits_max, batch_dims); in Compile() local
64 auto exp_shifted = xla::Exp(shifted_logits); in Compile()
78 ? xla::Sub(shifted_logits, xla::Log(sum), batch_dims) in Compile()
106 auto shifted_logits = xla::Sub(logits, logits_max, {kBatchDim}); in CrossEntropyWithLogits() local
109 auto exp_shifted_logits = xla::Exp(shifted_logits); in CrossEntropyWithLogits()
127 auto sub = xla::Sub(shifted_logits, log_sum_exp, {kBatchDim}); in CrossEntropyWithLogits()
/external/tensorflow/tensorflow/core/kernels/
Dsoftmax_op_functor.h66 auto shifted_logits = (logits - logits.maximum(along_class) in Compute() local
73 softmax.device(d) = shifted_logits; in Compute()
86 softmax.device(d) = shifted_logits.exp(); in Compute()
/external/tensorflow/tensorflow/python/kernel_tests/
Dctc_loss_op_test.py495 shifted_logits = array_ops.concat([
504 logits=shifted_logits,