This commit is contained in:
Ye Wang 2020-04-13 18:30:58 -07:00 committed by GitHub
parent efd9b92482
commit 66a79d2c9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -450,7 +450,7 @@
{
"component": {
"git": {
"commitHash": "83d30a3209a4ff47baa8db9ec4da397f4946854f",
"commitHash": "7922489c1e7e7baf20c4b1557743d6c7ea72647d",
"repositoryUrl": "https://github.com/microsoft/FeaturizersLibrary.git"
},
"type": "git"

@ -1 +1 @@
Subproject commit 83d30a3209a4ff47baa8db9ec4da397f4946854f
Subproject commit 7922489c1e7e7baf20c4b1557743d6c7ea72647d

View file

@ -17,7 +17,7 @@ template <typename T>
struct ForecastingPivotTransformerImpl {
void operator()(OpKernelContext* ctx) const {
using MatrixT = NS::RowMajMatrix<typename NS::Traits<T>::nullable_type>;
using InputType = std::vector<Eigen::Map<MatrixT>>;
using InputType = std::vector<Eigen::Map<const MatrixT>>;
using OutputType = std::vector<T>;
using TransformerT = Microsoft::Featurizer::Featurizers::ForecastingPivotTransformer<std::tuple<typename InputType::iterator, typename InputType::iterator>>;
@ -62,7 +62,7 @@ struct ForecastingPivotTransformerImpl {
const T* input_data(std::get<0>(dataPtrMap.at(index)));
const int64_t input_dim_1(std::get<1>(dataPtrMap.at(index)));
const int64_t input_dim_2(std::get<2>(dataPtrMap.at(index)));
input.push_back(typename InputType::value_type(const_cast<T*>(input_data), input_dim_1, input_dim_2));
input.push_back(typename InputType::value_type(input_data, input_dim_1, input_dim_2));
//Increment data pointer
input_data += input_dim_1 * input_dim_2;
}