Skip to content
Snippets Groups Projects

Add first version of forwardDType.

Merged Cyril Moineau requested to merge ForwardDtype into dev
1 unresolved thread
13 files
+ 255
31
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -295,6 +295,8 @@ public:
*/
bool forwardDims(const std::vector<std::vector<DimSize_t>>& dims = {}, bool allowDataDependency = false);
bool forwardDType(const std::vector<DataType>& inputTypes = {});
/** @brief Set the same backend for each Operator of the GraphView object's Nodes. */
void setBackend(const std::string& backend, const DeviceIdx_t device = 0) const;
/** @brief Set the same data type for each Operator of the GraphView object's Nodes. */
@@ -613,6 +615,19 @@ private:
*/
void updateInputsOutputsDelete(NodePtr deletedNode);
/**
* @brief Validates the connectivity and tensor integrity of the graph.
*
* This function ensures that all nodes in the graph are correctly connected
* and that mandatory input tensors are properly defined. It verifies:
* - That each node's input matches the expected output from its connected node.
* - That all mandatory inputs are present and defined.
* - Logs an error and returns `false` if any inconsistency is detected.
*
* @return `true` if all connections and tensor states are valid, `false` otherwise.
*/
bool connectionValid();
///////////////////////////////////////////////////////
// TOPOLOGY
///////////////////////////////////////////////////////
Loading