Skip to content
Snippets Groups Projects

[Upd] Shape so that 'forwardDims()' does not require a backend anymore

Merged Cyril Moineau requested to merge shapeForwardDims into dev
4 files
+ 22
10
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -393,6 +393,13 @@ public:
@@ -393,6 +393,13 @@ public:
return hasImpl() ? getImpl()->backend() : "";
return hasImpl() ? getImpl()->backend() : "";
}
}
 
 
/**
 
* @brief Get the device index.
 
* @return DeviceIdx_t
 
*/
 
DeviceIdx_t device() const noexcept { return mImpl ? mImpl->device().second : static_cast<DeviceIdx_t>(0); }
 
/**
/**
* @brief Set the backend of the Tensor associated implementation. If there
* @brief Set the backend of the Tensor associated implementation. If there
* was no previous implementation set, data will be allocated, but it will
* was no previous implementation set, data will be allocated, but it will
Loading