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

Method __init__

tests/test_stateless_executor.py:51–54  ·  view source on GitHub ↗
(self, rewards: torch.Tensor)

Source from the content-addressed store, hash-verified

49
50class FakeRewardModel(torch.nn.Module):
51 def __init__(self, rewards: torch.Tensor):
52 super().__init__()
53 self.register_buffer("fixed_rewards", rewards)
54 self.use_cache_calls: list[bool | None] = []
55
56 def forward(self, input_ids, attention_mask=None, use_cache=None):
57 del attention_mask

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected