MCPcopy Create free account
hub / github.com/BVLC/caffe / Top

Class Top

python/caffe/net_spec.py:82–97  ·  view source on GitHub ↗

A Top specifies a single output blob (which could be one of several produced by a layer.)

Source from the content-addressed store, hash-verified

80
81
82class Top(object):
83 """A Top specifies a single output blob (which could be one of several
84 produced by a layer.)"""
85
86 def __init__(self, fn, n):
87 self.fn = fn
88 self.n = n
89
90 def to_proto(self):
91 """Generate a NetParameter that contains all layers needed to compute
92 this top."""
93
94 return to_proto(self)
95
96 def _to_proto(self, layers, names, autonames):
97 return self.fn._to_proto(layers, names, autonames)
98
99
100class Function(object):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected