pytorch/docs/source
Doug Friedman c2f8f5076c add narrow() support for sparse tensors re: #8853 (#11342)
Summary:
Couple questions:

1) I used the log1p implementation in #8969 as a guide especially for testing.  I'm not sure what the ```skipIfROCM``` annotation is for, so unsure if i need it for my test.

2) I implemented the branching logic in the narrow function itself; is this the right place to do so?  I noticed that there a number of places where sparse-specific logic is handled with just an if statement in this file.  Or should I implement a separate dispatch in native_functions.yml as in the log1p?

And of course, happy to make any any other updates/changes that I may have missed as well.  This is my first PR to the project.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/11342

Differential Revision: D9978430

Pulled By: weiyangfb

fbshipit-source-id: e73dc20302ab58925afb19e609e31f4a38c634ad
2018-09-26 12:24:54 -07:00
..
_static i2h<->h2h in gif (#8750) 2018-06-21 14:46:47 -04:00
_templates docs: add canonical_url and fix redirect link (#8155) 2018-06-05 10:29:55 -04:00
notes Minor data loader doc improvements 2018-09-19 15:33:25 -07:00
scripts Add CELU activation to pytorch (#8551) 2018-08-01 07:54:44 -07:00
autograd.rst Add autograd automatic anomaly detection (#7677) 2018-06-11 21:26:17 -04:00
bottleneck.rst [docs] Clarify more CUDA profiling gotchas in bottleneck docs (#6763) 2018-04-19 13:15:27 -04:00
checkpoint.rst [docs] Fix some sphinx warnings (#6764) 2018-04-19 12:37:42 -04:00
conf.py Fixes an error with canonical url. (#11938) 2018-09-21 12:21:42 -07:00
cpp_extension.rst Inline JIT C++ Extensions (#7059) 2018-04-30 11:48:44 -04:00
cuda.rst Fix Python docs for broadcast and braodcast_coalesced (#4727) 2018-01-19 10:57:20 -05:00
cudnn_deterministic.rst WIP: Include note on cudnn determinism in each function backed by cudnn (#11434) 2018-09-11 20:27:09 -07:00
data.rst add fold example and add nn.Fold/nn.Unfold and F.fold/F.unfold to doc (#8600) 2018-06-18 09:36:42 -04:00
distributed_deprecated.rst Documentation for c10d: torch.distributed and deprecate the old distributed doc (#11450) 2018-09-11 02:10:28 -07:00
distributed.rst Documentation for c10d: torch.distributed and deprecate the old distributed doc (#11450) 2018-09-11 02:10:28 -07:00
distributions.rst NegativeBinomial distribution (#9345) 2018-08-01 08:39:25 -07:00
dlpack.rst document torch.utils.dlpack (#9343) 2018-07-11 07:46:09 -07:00
ffi.rst Improve ffi utils (#479) 2017-01-18 11:17:01 -05:00
index.rst Sphinx is case sensitive 2018-09-13 10:33:06 -07:00
jit.rst Fixes for Torch Script C++ API (#11682) 2018-09-17 09:54:50 -07:00
legacy.rst Add anything in torch.legacy docs 2017-01-16 12:59:47 -05:00
model_zoo.rst Add model_zoo utility torch torch.utils (#424) 2017-01-09 13:16:58 -05:00
multiprocessing.rst Typofix 2017-10-13 01:31:22 +02:00
nn.rst Order Loss functions alphabetically in nn.rst 2018-08-08 22:39:55 -07:00
onnx.rst Add trigonometry functions to docs/source/onnx.rst 2018-09-12 12:10:01 -07:00
optim.rst Add Cosine Annealing LR Scheduler (#3311) 2017-12-18 02:43:08 -05:00
sparse.rst add narrow() support for sparse tensors re: #8853 (#11342) 2018-09-26 12:24:54 -07:00
storage.rst Start documenting torch.Tensor (#377) 2016-12-30 01:21:34 -05:00
tensor_attributes.rst Update device docs (#6887) 2018-04-23 19:04:20 -04:00
tensors.rst Add matrix power (#11421) 2018-09-08 15:25:56 -07:00
torch.rst Add matrix power (#11421) 2018-09-08 15:25:56 -07:00