MCPcopy Create free account
hub / github.com/Vincentzyx/Douzero_Resnet / predict_env

Function predict_env

BidModel.py:74–80  ·  view source on GitHub ↗
(cards)

Source from the content-addressed store, hash-verified

72 return win_rate[0].item() * 100
73
74def predict_env(cards):
75 input = EnvToOnehot(cards)
76 if UseGPU:
77 input = input.to(device)
78 input = torch.flatten(input)
79 win_rate = net(input)
80 return win_rate[0].item() * 100

Callers

nothing calls this directly

Calls 1

EnvToOnehotFunction · 0.85

Tested by

no test coverage detected