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
| clang++ -Wall -std=c++11 -g -O0 -DDEBUG -ferror-limit=10 -I./externals/OpenBLAS/ -L./externals/OpenBLAS/ -I./lib/lmdb/ -L./lib/lmdb/ -L/usr/local/lib/ src/main.cpp src/parser/parser.cpp src/parser/cnn.pb.cc src/parser/corpus.cpp src/util.cpp -o deepnet -llmdb -lopenblas -lprotoc -lprotobuf | |
| ld: warning: directory not found for option '-L./lib/lmdb/' | |
| Undefined symbols for architecture x86_64: | |
| "google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&))", referenced from: | |
| cnn::protobuf_AddDesc_cnn_2eproto() in cnn-6210e9.o | |
| "google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned char*)", referenced from: | |
| cnn::Datum::SerializeWithCachedSizesToArray(unsigned char*) const in cnn-6210e9.o | |
| cnn::FillerParameter::SerializeWithCachedSizesToArray(unsigned char*) con |
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
| clang++ -Wall -std=c++11 -g -O0 -DDEBUG -ferror-limit=10 -I./externals/OpenBLAS/ -L./externals/OpenBLAS/ -I./lib/lmdb/ -L./lib/lmdb/ -llmdb -lopenblas `pkg-config --cflags --libs protobuf` src/main.cpp src/parser/parser.cpp src/parser/cnn.pb.cc src/parser/corpus.cpp src/util.cpp -o deepnet | |
| Package protobuf was not found in the pkg-config search path. | |
| Perhaps you should add the directory containing `protobuf.pc' | |
| to the PKG_CONFIG_PATH environment variable | |
| No package 'protobuf' found | |
| ld: warning: directory not found for option '-L./lib/lmdb/' | |
| Undefined symbols for architecture x86_64: | |
| "google::protobuf::TextFormat::Parse(google::protobuf::io::ZeroCopyInputStream*, google::protobuf::Message*)", referenced from: | |
| Parser::ReadProtoFromTextFile(char const*, google::protobuf::Message*) in parser-d56e46.o | |
| "google::protobuf::MessageLite::ParseFromArray(void const*, int)", referenced from: |
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
| void TEST_CAFFENET_LAYERS(){ | |
| const int BATCH = 256; | |
| Layer<DataType_SFFloat, Layout_CRDB> * layer1i = Layer<DataType_SFFloat, Layout_CRDB>::make_layer(65, 3, BATCH, 11, 96/2); | |
| Layer<DataType_SFFloat, Layout_CRDB> * layer1o = Layer<DataType_SFFloat, Layout_CRDB>::make_layer(55, 96/2, BATCH, 0, 0); | |
| Layer<DataType_SFFloat, Layout_CRDB> * layer2i = Layer<DataType_SFFloat, Layout_CRDB>::make_layer(55, 96/2, BATCH, 5, 256/2); | |
| Layer<DataType_SFFloat, Layout_CRDB> * layer2o = Layer<DataType_SFFloat, Layout_CRDB>::make_layer(51, 256/2, BATCH, 0, 0); |
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
| drop aggregate array_stack_int(integer[]); | |
| drop aggregate array_stack_text(text[]); | |
| CREATE ORDERED AGGREGATE array_stack_int(integer[]) ( | |
| SFUNC = array_cat, | |
| STYPE = integer[] | |
| ); |
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
| psql -p $PGPORT -h $PGHOST $DBNAME -c """ | |
| CREATE TABLE F ( | |
| id bigint, | |
| myid int, | |
| label int | |
| ); | |
| CREATE TABLE A ( |
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
| deepdive { | |
| db.default: { | |
| driver : "org.postgresql.Driver" | |
| url : "jdbc:postgresql://"${PGHOST}":"${PGPORT}"/"${DBNAME} | |
| user : ${PGUSER} | |
| password: ${PGPASSWORD} | |
| dbname : ${DBNAME} | |
| host : ${PGHOST} | |
| port : ${PGPORT} |
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
| Mention(docid, mid) :- MentionFeature(docid, mid, f) | |
| Mention(docid, mid1) :- Mention(docid, mid2), CRFConstraints(docid, mid1, mid2) | |
| EL(docid, mid, e) :- ELFeature(docid, mid, e, f), Mention(docid, mid) | |
| RelationMention(docid, mid1, mid2) :- RelationMentionFeature(docid, mid1, mid2, f), Mention(docid, mid1), Mention(docid, mid2) | |
| Relation(docid, e1, e2) :- RelationMention(docid, mid1, mid2), EL(docid, mid1, e1), EL(docid, mid2, e2) |
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
| Mention(docid, mid) :- MentionFeature(docid, mid, f) | |
| Mention(docid, mid1) :- Mention(docid, mid2), CRFConstraints(docid, mid1, mid2) | |
| EL(docid, mid, e) :- ELFeature(docid, mid, e, f), Mention(docid, mid) | |
| RelationMention(docid, mid1, mid2) :- RelationMention(docid, mid1, mid2, f), Mention(docid, mid1), Mention(docid, mid2) | |
| Relation(docid, e1, e2) :- RelationMention(docid, mid1, mid2), EL(docid, mid1, e1), EL(docid, mid2, e2) |
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
| #! /bin/bash | |
| . "$(dirname $0)/env.sh" | |
| cd $DEEPDIVE_HOME | |
| ### Run with deepdive binary: | |
| #deepdive -c $APP_HOME/application.conf | |
| ### Compile and run: | |
| ./sbt/sbt "run -c $APP_HOME/application.conf" |
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 <iostream> | |
| #include <chrono> | |
| #include <ctime> | |
| using namespace std; | |
| // double n=4 << 21; | |
| long n=1E3 * 1E3 * 1E3; | |
| const long cnt=1e8; | |
| double fast(const double* const a) { |