Skip to content

Commit

Permalink
Add getLayers method to ModelT (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 authored Dec 5, 2024
1 parent cd80257 commit 21ebabd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RTNeural/ModelT.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ class ModelT
return parseJson(parent, debug, custom_layers);
}

/** Returns a reference to a tuple containing the model layers */
auto& getLayers() noexcept
{
return layers;
}

private:
#if RTNEURAL_USE_XSIMD
using v_type = xsimd::simd_type<T>;
Expand Down

0 comments on commit 21ebabd

Please sign in to comment.