updates
This commit is contained in:
@@ -313,15 +313,18 @@ impl<B: Backend> Batcher<B, TrainingSample, ChessBatch<B>> for ChessBatcher {
|
||||
*p /= sum;
|
||||
}
|
||||
}
|
||||
Tensor::<B, 2>::from_floats(TensorData::new(policy, [4672]), device).unsqueeze()
|
||||
Tensor::<B, 2>::from_floats(TensorData::new(policy, [1, 4672]), device).unsqueeze()
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let value_target_tensors = items
|
||||
.iter()
|
||||
.map(|item| {
|
||||
Tensor::<B, 2>::from_floats(TensorData::new(vec![item.value_target], [1]), device)
|
||||
.reshape([1, 1])
|
||||
Tensor::<B, 2>::from_floats(
|
||||
TensorData::new(vec![item.value_target], [1, 1]),
|
||||
device,
|
||||
)
|
||||
.reshape([1, 1])
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user