MCPcopy Create free account
hub / github.com/NeuralMMO/baselines / __init__

Method __init__

curriculum_generation/task_encoder.py:27–60  ·  view source on GitHub ↗

Initialize the TaskEncoder. Args: checkpoint: Path to the pretrained model. context: Python module context in which tasks are defined. batch_size: Size of each batch during embedding computation. tmp_file_path: Temporary file path for saving intermed

(
        self,
        checkpoint: str,
        context: ModuleType,
        batch_size=2,
        tmp_file_path="tmp_task_encoder.pkl",
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_get_embeddingMethod · 0.95
extract_module_fnFunction · 0.85

Tested by

no test coverage detected