diff options
-rw-r--r-- | modules/codec/c++/data_math.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/codec/c++/data_math.hpp b/modules/codec/c++/data_math.hpp index 5791f00..efdca7d 100644 --- a/modules/codec/c++/data_math.hpp +++ b/modules/codec/c++/data_math.hpp @@ -70,13 +70,18 @@ template<typename Inner, uint64_t... Dims> class data<schema::Tensor<Inner, Dims...>, encode::Native> { public: using Schema = schema::Tensor<Inner, Dims...>; + static constexpr uint64_t Rank = sizeof...(Dims); private: - data<schema::Array<Inner,Schema::Rank>, encode::Native> values_; + data<schema::FixedArray<Inner, Dims...>, encode::Native> values_; + //data<schema::Array<Inner,Schema::Rank>, encode::Native> values_; public: + /* data(): values_{data<schema::FixedArray<schema::UInt64,sizeof...(Dims)>>{{data<schema::UInt64, encode::Native>{Dims}...}}} {} + */ + data() = default; data<Inner, encode::Native>& at(const data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>, encode::Native>& index){ return values_.at(index); |