Which sorting algorithm does TensorFlow use?
up vote
1
down vote
favorite
I'm trying to figure out how TensorFlow's sort function works.
I've looked in the docs and tried to find in the source code without luck.
The function is tf.contrib.framework.sort(values)?
1
tensorflow
add a comment |
up vote
1
down vote
favorite
I'm trying to figure out how TensorFlow's sort function works.
I've looked in the docs and tried to find in the source code without luck.
The function is tf.contrib.framework.sort(values)?
1
tensorflow
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm trying to figure out how TensorFlow's sort function works.
I've looked in the docs and tried to find in the source code without luck.
The function is tf.contrib.framework.sort(values)?
1
tensorflow
I'm trying to figure out how TensorFlow's sort function works.
I've looked in the docs and tried to find in the source code without luck.
The function is tf.contrib.framework.sort(values)?
1
tensorflow
tensorflow
asked Nov 10 at 19:50
jeffhale
1752514
1752514
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
From the sort source code, this is the line where the actual sort operation is called. The topk op is actually part of the core kernels and is written in C/C++. This is the corresponding source code for it. A quick high level glance seems to employ some form of heap sort.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
From the sort source code, this is the line where the actual sort operation is called. The topk op is actually part of the core kernels and is written in C/C++. This is the corresponding source code for it. A quick high level glance seems to employ some form of heap sort.
add a comment |
up vote
1
down vote
accepted
From the sort source code, this is the line where the actual sort operation is called. The topk op is actually part of the core kernels and is written in C/C++. This is the corresponding source code for it. A quick high level glance seems to employ some form of heap sort.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
From the sort source code, this is the line where the actual sort operation is called. The topk op is actually part of the core kernels and is written in C/C++. This is the corresponding source code for it. A quick high level glance seems to employ some form of heap sort.
From the sort source code, this is the line where the actual sort operation is called. The topk op is actually part of the core kernels and is written in C/C++. This is the corresponding source code for it. A quick high level glance seems to employ some form of heap sort.
answered Nov 12 at 17:34
kvish
22517
22517
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242817%2fwhich-sorting-algorithm-does-tensorflow-use%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown