Skip to content

Commit

Permalink
add suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Sep 30, 2024
1 parent afbeb3c commit 07bd676
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public static void main(String[] args) throws LoadEngineException, Exception {
* @throws LoadEngineException if there is any error loading an engine
* @throws Exception if there is any exception running the model
*/
@SuppressWarnings("unchecked")
public static <T extends RealType<T> & NativeType<T>, R extends RealType<R> & NativeType<R>>
void loadAndRunTf2() throws LoadEngineException, Exception {
// Tag for the DL framework (engine) that wants to be used
Expand Down Expand Up @@ -163,6 +164,7 @@ void loadAndRunTf2() throws LoadEngineException, Exception {
* @throws LoadEngineException if there is any error loading an engine
* @throws Exception if there is any exception running the model
*/
@SuppressWarnings("unchecked")
public static <T extends RealType<T> & NativeType<T>, R extends RealType<R> & NativeType<R>>
void loadAndRunTf1() throws LoadEngineException, Exception {
// Tag for the DL framework (engine) that wants to be used
Expand Down

0 comments on commit 07bd676

Please sign in to comment.