 tutorials about how to use these layers.
    Some of that information has been re-created here for your convenience.
</p>

<p>
    First, you'll need to create a Python file which defines one or more layers.
    As an example, here is a layer which re-creates the functionality of the standard Accuracy layer using JSON-encoded parameters:
</p>
<pre>
import caffe
import json

class AccuracyLayer(caffe.Layer):
    def setup(self, bottom, top):
        if hasattr(self, 'param_str') and self.param_str:
        