Skip to content
Snippets Groups Projects
Commit dd2529ec authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Minor adaptations

parent 39cf8659
No related branches found
No related tags found
1 merge request!4Add Convert operator (a.k.a. Transmitter)
Pipeline #35543 failed
......@@ -81,6 +81,10 @@ public:
}
void copyCast(const void *src, NbElts_t length, const DataType srcDt) override {
if (length == 0) {
return;
}
if (srcDt == DataType::Float64) {
thrust_copy(static_cast<const double*>(src),
static_cast<T*>(rawPtr()),
......@@ -208,8 +212,6 @@ public:
private:
void lazyInit() {
AIDGE_INTERNAL_ASSERT(mTensor.dataType() == NativeType<T>::type);
if (mData.size() < mTensor.size()) {
// Need more data, a re-allocation will occur
AIDGE_ASSERT(mData.empty() || mDataOwner != nullptr, "trying to enlarge non-owned data");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment