How to write comments in prototxt files?

2019-06-17 10:40发布

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条回答
爷的心禁止访问
2楼-- · 2019-06-17 11:08

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...
查看更多
登录 后发表回答