Skip to content

Commit

Permalink
Update calc_func.py
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jun 30, 2024
1 parent cacd177 commit 8a1de5e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion thop/vision/calc_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def calculate_conv2d_flops(input_size: list, output_size: list, kernel_size: lis
def calculate_conv(bias, kernel_size, output_size, in_channel, group):
"""Calculate FLOPs for convolutional layers given bias, kernel size, output size, in_channels, and groups."""
warnings.warn("This API is being deprecated.")
"""Inputs are all numbers!"""
return torch.DoubleTensor([output_size * (in_channel / group * kernel_size + bias)])


Expand Down

0 comments on commit 8a1de5e

Please sign in to comment.