MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / post_featuremaps

Function post_featuremaps

netdissect/server.py:91–101  ·  view source on GitHub ↗
(feat_req)

Source from the content-addressed store, hash-verified

89 }
90
91def post_featuremaps(feat_req):
92 project = feat_req['project']
93 ids = feat_req['ids']
94 layers = feat_req.get('layers', None)
95 interventions = feat_req.get('interventions', None)
96 featuremaps = projects[project].get_featuremaps(
97 ids, layers, interventions)
98 return {
99 'request': feat_req,
100 'res': featuremaps
101 }
102
103@app.route('/client/<path:path>')
104def send_static(path):

Callers

nothing calls this directly

Calls 1

get_featuremapsMethod · 0.80

Tested by

no test coverage detected