mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-30 23:18:20 +00:00
Fix softmax cpu code for double type (#3065)
This commit is contained in:
parent
179603775f
commit
7ffb36be44
1 changed files with 4 additions and 4 deletions
|
|
@ -61,10 +61,10 @@ class Softmax final : public OpKernel {
|
|||
int N = static_cast<int>(input_shape.SizeToDimension(axis));
|
||||
int D = static_cast<int>(input_shape.SizeFromDimension(axis));
|
||||
|
||||
Eigen::TensorMap<Eigen::Tensor<const float, 2, Eigen::RowMajor, Eigen::DenseIndex>, Eigen::Aligned> X_tensor(
|
||||
X.Data<float>(), N, D);
|
||||
Eigen::TensorMap<Eigen::Tensor<float, 2, Eigen::RowMajor, Eigen::DenseIndex>, Eigen::Aligned> Y_tensor(
|
||||
Y->MutableData<float>(), N, D);
|
||||
Eigen::TensorMap<Eigen::Tensor<const T, 2, Eigen::RowMajor, Eigen::DenseIndex>, Eigen::Aligned> X_tensor(
|
||||
X.Data<T>(), N, D);
|
||||
Eigen::TensorMap<Eigen::Tensor<T, 2, Eigen::RowMajor, Eigen::DenseIndex>, Eigen::Aligned> Y_tensor(
|
||||
Y->MutableData<T>(), N, D);
|
||||
#ifndef USE_OPENMP
|
||||
if (tp == nullptr)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue