MCPcopy
hub / github.com/OpenPPL/ppq / set_attr

Method set_attr

ppq/parser/caffe/caffe_export_utils.py:150–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148@register_class
149class LeakyRelu(CaffeOpExporter):
150 def set_attr(self):
151 self.layer.relu_param.negative_slope = refine_value(self.op.attributes.get('alpha', 0.01))
152
153
154class _Pooling(CaffeOpExporter):

Callers

nothing calls this directly

Calls 1

refine_valueFunction · 0.85

Tested by

no test coverage detected