如何在 prototxt 文件中写注释?

How to write comments in prototxt files?

我找不到如何在 prototxt 文件中写注释。

有什么方法可以在 prototxt 文件中添加注释吗?

谢谢

您可以通过添加 # 字符来发表评论:之后的行中的所有内容都是评论:

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...