MCPcopy Create free account
hub / github.com/RL-Align/RL-Kernel / __init__

Method __init__

tests/test_stateless_executor.py:343–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341 with pytest.raises(ValueError, match="shape \\[B\\]"):
342 score_rewards(outputs, inputs, reward_adapter=lambda _outputs, _inputs: torch.ones(2, 2))
343
344 with pytest.raises(ValueError, match="batch size"):
345 score_rewards(outputs, inputs, reward_adapter=lambda _outputs, _inputs: torch.ones(1))
346
347
348def test_default_reward_adapter_rejects_non_scalar_logits():
349 inputs = _inputs()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected