Skip to content

Commit

Permalink
Add torch.argmax to IMX500 TPCs
Browse files Browse the repository at this point in the history
Co-authored-by: elad cohen <[email protected]>
  • Loading branch information
elad-c and elad cohen authored Nov 20, 2023
1 parent 6753bce commit b2944fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import torch
from torch import add, sub, mul, div, flatten, reshape, split, unsqueeze, dropout, sigmoid, tanh, chunk, unbind, topk, \
gather, equal, transpose, permute
gather, equal, transpose, permute, argmax
from torch.nn import Conv2d, Linear, BatchNorm2d, ConvTranspose2d
from torch.nn import Dropout, Flatten, Hardtanh
from torch.nn import ReLU, ReLU6, PReLU, SiLU, Sigmoid, Tanh, Hardswish, LeakyReLU
Expand Down Expand Up @@ -68,6 +68,7 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
permute,
transpose,
equal,
argmax,
gather,
topk])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import torch
from torch import add, sub, mul, div, flatten, reshape, split, unsqueeze, dropout, sigmoid, tanh, chunk, unbind, topk, \
gather, equal, transpose, permute
gather, equal, transpose, permute, argmax
from torch.nn import Conv2d, Linear, BatchNorm2d, ConvTranspose2d
from torch.nn import Dropout, Flatten, Hardtanh
from torch.nn import ReLU, ReLU6, PReLU, SiLU, Sigmoid, Tanh, Hardswish, LeakyReLU
Expand Down Expand Up @@ -68,6 +68,7 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
permute,
transpose,
equal,
argmax,
gather,
topk])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import torch
from torch import add, sub, mul, div, flatten, reshape, split, unsqueeze, dropout, sigmoid, tanh, chunk, unbind, topk, \
gather, equal, transpose, permute
gather, equal, transpose, permute, argmax
from torch.nn import Conv2d, Linear, BatchNorm2d, ConvTranspose2d
from torch.nn import Dropout, Flatten, Hardtanh
from torch.nn import ReLU, ReLU6, PReLU, SiLU, Sigmoid, Tanh, Hardswish, LeakyReLU
Expand Down Expand Up @@ -69,6 +69,7 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
permute,
transpose,
equal,
argmax,
gather,
topk])

Expand Down

0 comments on commit b2944fe

Please sign in to comment.