MCPcopy
hub / github.com/open-mmlab/OpenPCDet / replace_feature

Function replace_feature

pcdet/utils/spconv_utils.py:28–34  ·  view source on GitHub ↗
(out, new_features)

Source from the content-addressed store, hash-verified

26
27
28def replace_feature(out, new_features):
29 if "replace_feature" in out.__dir__():
30 # spconv 2.x behaviour
31 return out.replace_feature(new_features)
32 else:
33 out.features = new_features
34 return out

Callers 4

forwardMethod · 0.85
forwardMethod · 0.85
UR_block_forwardMethod · 0.85
channel_reductionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected