-
Notifications
You must be signed in to change notification settings - Fork 213
Numpy histogram #975
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
Numpy histogram #975
Conversation
|
@ChengYen-Tang -- lots of good work here!! Could you please add a little bit more in terms of what this PR is for, and what scenarios it supports? I ask, because I don't see anything that's in the |
https://pytorch.org/docs/stable/tensorboard.html#torch.utils.tensorboard.writer.SummaryWriter.add_histogram |
Should it be internal rather than public, then? |
I think maybe others need this method too, this can be featured in torchsharp |
Yes, I agree. In that case, I would start it out as internal. Changing it to public if there is demand won't be a breaking change. |
|
@ChengYen-Tang |
| return new Tensor(res); | ||
| } | ||
|
|
||
| /// https://github.com/numpy/numpy/blob/v1.24.0/numpy/lib/histograms.py#L679 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is a little bit of a nit-pick, but does this method belong in a file called 'ComparisonOps'?
|
Thank you very much. Not being greedy, if you have time, a small polyglot notebook sample showing how to use the features for tensorboard you have written :-) |
|
Where to put it? |
|
The aim is to show the community that What you do in PyTorch, the same can be done in TorchSharp. Try to be as close as possible to this and turn that into dotnet PolyGlot notebook experience But use example where there is NOT too much extra codes to write, using pre-existing dataset and codes available in TorchSharp What do you think to put the polyglot notebook here? |
|
Yes, I suggest adding another tutorial to the CSharp folder in dotnet/TorchSharpExamples. I can translate to F# if you aren't familiar with it. Maybe use a more useful name than what I have for the others? :-) Make sure to follow the structure of the other tutorials -- the first cell is the same in all of them and sets up for automatic formatting of tensors as the output of a cell. |
#960 (comment)