Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Improving TorchSharp experience in Notebook with Torchsharp.Summary #29

Open
GeorgeS2019 opened this issue Aug 8, 2022 · 0 comments

Comments

@GeorgeS2019
Copy link

Is there interest to port

torch-summary to TorchSharp.Summary

from torchsummary import summary

model = ConvNet()
summary(model, (1, 28, 28))

So in TorchSharp notebook, we get:

==========================================================================================
Layer (type:depth-idx)                   Output Shape              Param #
==========================================================================================
├─Conv2d: 1-1                            [-1, 10, 24, 24]          260
├─Conv2d: 1-2                            [-1, 20, 8, 8]            5,020
├─Dropout2d: 1-3                         [-1, 20, 8, 8]            --
├─Linear: 1-4                            [-1, 50]                  16,050
├─Linear: 1-5                            [-1, 10]                  510
==========================================================================================
Total params: 21,840
Trainable params: 21,840
Non-trainable params: 0
==========================================================================================
Input size (MB): 0.00
Forward/backward pass size (MB): 0.05
Params size (MB): 0.08
Estimated Total Size (MB): 0.14
==========================================================================================
@GeorgeS2019 GeorgeS2019 changed the title Feedback: Improving TorchSharp experience in Notebook [Feedback]: Improving TorchSharp experience in Notebook Aug 8, 2022
@GeorgeS2019 GeorgeS2019 changed the title [Feedback]: Improving TorchSharp experience in Notebook [Suggestion]: Improving TorchSharp experience in Notebook Aug 8, 2022
@GeorgeS2019 GeorgeS2019 changed the title [Suggestion]: Improving TorchSharp experience in Notebook [Suggestion]: Improving TorchSharp experience in Notebook with Torchsharp.Summary Aug 8, 2022
@GeorgeS2019 GeorgeS2019 changed the title [Suggestion]: Improving TorchSharp experience in Notebook with Torchsharp.Summary [Suggestion] Improving TorchSharp experience in Notebook with Torchsharp.Summary Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant