MCPcopy Create free account
hub / github.com/modAL-python/modAL / logits_adaptor

Method logits_adaptor

tests/core_tests.py:839–840  ·  view source on GitHub ↗
(input_tensor, data)

Source from the content-addressed store, hash-verified

837 X_adaption_needed = torch.randn(input_shape)
838
839 def logits_adaptor(input_tensor, data): return torch.flatten(
840 input_tensor, start_dim=1)
841
842 predictions = modAL.dropout.get_predictions(
843 learner, X_adaption_needed, dropout_layer_indexes=[],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected