protocol-buffers

Errors when linking to protobuf 3 on MS Visual C

爱⌒轻易说出口 提交于 2019-11-26 11:35:45
问题 Encountered on Visual Studio 2013 , but it\'s reproducible with any version. I cloned the protocol buffer library from github, ran CMake-gui on it (I left everything to default, so it\'s the static version), only built libprotobuf (other project failed for some reason, cmd.exe error, might have something to do with tests, but libprotobuf builds fine). My project uses headers generated with the .proto file found on the mapbox vector tiles spec\'s github. When I link, I first have this error

TensorFlow saving into/loading a graph from a file

笑着哭i 提交于 2019-11-26 10:05:56
问题 From what I\'ve gathered so far, there are several different ways of dumping a TensorFlow graph into a file and then loading it into another program, but I haven\'t been able to find clear examples/information on how they work. What I already know is this: Save the model\'s variables into a checkpoint file (.ckpt) using a tf.train.Saver() and restore them later (source) Save a model into a .pb file and load it back in using tf.train.write_graph() and tf.import_graph_def() (source) Load in a

InfogainLoss layer

人盡茶涼 提交于 2019-11-26 04:25:22
问题 I wish to use a loss layer of type InfogainLoss in my model. But I am having difficulties defining it properly. Is there any tutorial/example on the usage of INFOGAIN_LOSS layer? Should the input to this layer, the class probabilities, be the output of a SOFTMAX layer, or is it enough to input the \"top\" of a fully connected layer? INFOGAIN_LOSS requires three inputs: class probabilities, labels and the matrix H . The matrix H can be provided either as a layer parameters infogain_loss_param

Are there C++ equivalents for the Protocol Buffers delimited I/O functions in Java?

柔情痞子 提交于 2019-11-26 01:39:15
问题 I\'m trying to read / write multiple Protocol Buffers messages from files, in both C++ and Java. Google suggests writing length prefixes before the messages, but there\'s no way to do that by default (that I could see). However, the Java API in version 2.1.0 received a set of \"Delimited\" I/O functions which apparently do that job: parseDelimitedFrom mergeDelimitedFrom writeDelimitedTo Are there C++ equivalents? And if not, what\'s the wire format for the size prefixes the Java API attaches,