MCPcopy Create free account
hub / github.com/openai/point-e / compute_features

Method compute_features

point_e/evals/feature_extractor.py:102–105  ·  view source on GitHub ↗
(i_batch)

Source from the content-addressed store, hash-verified

100 )
101
102 def compute_features(i_batch):
103 i, batch = i_batch
104 with torch.no_grad():
105 return self.models[i](batch, features=True)
106
107 for logits, _, features in pool.imap(compute_features, enumerate(batches)):
108 output_features.append(features.cpu().numpy())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected