How to write comments in prototxt files?

2019-06-17 10:46发布

问题:

I can't find how to write comments in prototxt files.

Is there any way to have comments in a prototxt file, how?

Thanks

回答1:

You can comment by adding the # char: everything in the line after that is a comment:

layer {
  name: "aLayerWithComments" # I picked this cool name by myself
  type: "ReLU"
  bottom: "someData" # this is the output of the layer below
  top: "someData" # same name means this is an "in-place" layer
}
# and now you can comment the entire line...