You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2023/10/23 18:41:00 UTC

Re: [PR] WIP: Implementation of built-in function logprobs_from_logits [tvm]

tqchen commented on code in PR #15969:
URL: https://github.com/apache/tvm/pull/15969#discussion_r1369112040


##########
src/runtime/relax_vm/lm_support.cc:
##########
@@ -510,6 +511,72 @@ int SampleTopPFromProb(NDArray prob, double top_p, double uniform_sample) {
 
 TVM_REGISTER_GLOBAL("vm.builtin.sample_top_p_from_prob").set_body_typed(SampleTopPFromProb);
 
+NDArray LogProbsFromLogits(NDArray logits) {

Review Comment:
   Just call it logsoftmax



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org