Fix XSpode
This commit is contained in:
@@ -390,11 +390,7 @@ namespace bayesnet {
|
||||
{
|
||||
auto X_ = TensorUtils::to_matrix(X);
|
||||
auto result_v = predict(X_);
|
||||
torch::Tensor result;
|
||||
for (int i = 0; i < result_v.size(); ++i) {
|
||||
result.index_put_({ i, "..." }, torch::tensor(result_v[i], torch::kInt32));
|
||||
}
|
||||
return result;
|
||||
return torch::tensor(result_v, torch::kInt32);
|
||||
}
|
||||
torch::Tensor XSpode::predict_proba(torch::Tensor& X)
|
||||
{
|
||||
|
Reference in New Issue
Block a user