This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The top five results are | |
golden retriever | |
0.7964490652084351 | |
Labrador retriever | |
0.0944252461194992 | |
kuvasz | |
0.03383997827768326 | |
clumber | |
0.005355054046958685 | |
Great Pyrenees |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is useful for reading the contents of the ops generated by ruby. | |
# You can read any graph defination in pb/pbtxt format generated by ruby | |
# or by python and then convert it back and forth from human readable to binary format. | |
import tensorflow as tf | |
from google.protobuf import text_format | |
from tensorflow.python.platform import gfile | |
def pbtxt_to_graphdef(filename): | |
with open(filename, 'r') as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 | |
input1Placeholder* | |
dtype0 * | |
shape: | |
3 | |
input2Placeholder* | |
dtype0 * | |
shape: | |
& |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is useful for reading the contents of the ops generated by ruby. | |
# You can read any graph defination in pb/pbtxt format generated by ruby | |
# or by python and then convert it back and forth from human readable to binary format. | |
import tensorflow as tf | |
from google.protobuf import text_format | |
from tensorflow.python.platform import gfile | |
def pbtxt_to_graphdef(filename): | |
with open(filename, 'r') as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define inf INFINITY | |
#define bitcount __builtin_popcount // counts 1 eg- 1101 has value 3 | |
/* | |
const clock_t begin_time = clock(); | |
// do something | |
cout << float( clock () - begin_time ) / CLOCKS_PER_SEC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The top five results are | |
palace | |
0.9386739134788513 | |
castle | |
0.001009694067761302 | |
triumphal arch | |
0.000994258327409625 | |
bearskin | |
0.0006811455241404474 | |
obelisk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The top five results are | |
library | |
0.9226638674736023 | |
bookshop | |
0.04937422648072243 | |
bookcase | |
0.009810803458094597 | |
laptop | |
0.0008225941564887762 | |
comic book |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The top five results are | |
suspension bridge | |
0.6270248293876648 | |
pier | |
0.13846060633659363 | |
palace | |
0.02177630551159382 | |
steel arch bridge | |
0.010115325450897217 | |
castle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The top five results are | |
palace | |
0.9637631773948669 | |
castle | |
0.0007642844575457275 | |
library | |
0.00034402479650452733 | |
obelisk | |
0.00029631995130330324 | |
white wolf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define inf INFINITY | |
/* | |
const clock_t begin_time = clock(); | |
// do something | |
cout << float( clock () - begin_time ) / CLOCKS_PER_SEC; | |
Read from a file | |
freopen("input.in","r",stdin); |