pytorch/docs/source
Elias Ellison 7ab4ad7b6d add torch.jit.is_scripting() api (#25263)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25263

This adds an api to return true in script and false in eager, which together with ignore allows guarding of not yet supported JIT features. Bikeshedding requested please.

cc zou3519

```
def foo():
   if not torch.jit.is_scripting():
      return torch.linear(...)
   else:
      return addmm(...)
```

Test Plan: Imported from OSS

Differential Revision: D17272443

Pulled By: eellison

fbshipit-source-id: de0f769c7eaae91de0007b98969183df93a91f42
2019-09-09 20:24:36 -07:00
..
_static/img hyperparameter plugin (#23134) 2019-08-26 10:40:34 -07:00
_templates Generate sphinx docs with secure content. (#18508) 2019-03-27 11:01:48 -07:00
community Adjust maintainers list (#23693) 2019-08-01 22:59:02 -07:00
notes Document benchmarking practice for CUDA 2019-08-13 15:07:23 -07:00
scripts Add CELU activation to pytorch (#8551) 2018-08-01 07:54:44 -07:00
__config__.rst Allow a non-OpenMP based build (#19749) 2019-05-06 19:34:48 -07:00
autograd.rst Added torch.autograd.profiler.record_function() as context manager. (#23428) 2019-07-30 11:10:01 -07:00
bottleneck.rst [docs] Clarify more CUDA profiling gotchas in bottleneck docs (#6763) 2018-04-19 13:15:27 -04:00
checkpoint.rst Stashing checkpointing RNG states based on devices of arg tensors (#14518) 2018-12-11 09:48:45 -08:00
conf.py Finish testing code examples in the docs (#25668) 2019-09-05 16:13:37 -07:00
cpp_extension.rst Inline JIT C++ Extensions (#7059) 2018-04-30 11:48:44 -04:00
cuda_deterministic_backward.rst Typo correction in cuda_deterministic_backward.rst (#25011) 2019-08-22 21:19:39 -07:00
cuda_deterministic.rst Amend nondeterminism notes (#12217) 2018-10-16 23:59:26 -07:00
cuda.rst Add cuda.reset_max_memory_* (#15985) 2019-01-14 07:31:51 -08:00
cudnn_deterministic.rst Amend nondeterminism notes (#12217) 2018-10-16 23:59:26 -07:00
cudnn_persistent_rnn.rst don't copy weight gradients in rnn (#12600) 2018-10-12 13:34:10 -07:00
data.rst Slightly improve dataloader docs on when auto-batching is disabled (#23671) 2019-08-01 12:10:17 -07:00
distributed.rst Update distributed.rst (#23289) 2019-07-26 16:55:52 -07:00
distributions.rst More doc edits (#19929) 2019-04-30 13:52:07 -07:00
dlpack.rst document torch.utils.dlpack (#9343) 2018-07-11 07:46:09 -07:00
hub.rst better example for local weights (#21685) 2019-06-13 17:56:25 -07:00
index.rst Alphabetize Package Reference section in Docs 2019-09-04 14:31:16 -07:00
jit_builtin_functions.rst Fix builtin function reference (#24056) 2019-08-09 15:58:15 -07:00
jit.rst add torch.jit.is_scripting() api (#25263) 2019-09-09 20:24:36 -07:00
model_zoo.rst add/move a few apis in torch.hub (#18758) 2019-04-10 23:10:39 -07:00
multiprocessing.rst Update multiprocessing note now that shared CUDA tensors are refcounted (#19904) 2019-05-25 17:40:42 -07:00
nn.functional.rst Breaks up NN module in docs so it loads faster. 2019-06-11 09:38:41 -07:00
nn.init.rst Add document of functions nn.init.ones_/zeros_ (#23145) 2019-07-25 06:09:50 -07:00
nn.rst Fixed flatten docs (I think) (#25544) 2019-09-02 11:34:56 -07:00
onnx.rst Fix dead link and syntax in ONNX landing page 2019-08-29 23:58:34 -07:00
optim.rst Add CosineAnnealingWarmRestarts to optim documentation (#25421) 2019-09-05 19:06:18 -07:00
random.rst Adds torch.random to docs/toc (#23553) 2019-08-07 16:31:32 -07:00
sparse.rst fix typo: toDense --> to_dense #25706 (#25832) 2019-09-09 18:27:03 -07:00
storage.rst Start documenting torch.Tensor (#377) 2016-12-30 01:21:34 -05:00
tensor_attributes.rst Improve handling of mixed-type tensor operations (#22273) 2019-09-05 18:26:09 -07:00
tensorboard.rst Update tensorboard.rst (#22026) 2019-08-12 15:02:26 -07:00
tensors.rst Add missing functions and methods for channelwise quantization (#24934) 2019-08-23 15:44:16 -07:00
torch.rst Documentation for cdist (#25221) 2019-09-03 14:16:07 -07:00
type_info.rst Allow converting char tensor to numpy; add [fi]info.min (#15046) 2018-12-24 09:11:24 -08:00