Add a maximum graph depth (#797)

* add a maximum graph depth

* remember how to use C++
This commit is contained in:
Awni Hannun
2024-03-06 15:39:00 -08:00
committed by GitHub
parent 7762e07fde
commit 1074674e32
2 changed files with 10 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ class array {
};
/** The depth of the array in the graph. Evaluated arrays have depth 0. */
uint16_t graph_depth() const {
uint32_t graph_depth() const {
return array_desc_->depth;
}
@@ -389,7 +389,7 @@ class array {
uint32_t position{0};
// The depth of the array in the graph.
uint16_t depth{0};
uint32_t depth{0};
explicit ArrayDesc(const std::vector<int>& shape, Dtype dtype);