id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Django_meta/tutorialdjango_181_0.txt |
2. In the Terminal, run the command ` python manage.py collectstatic ` and observe that ` hello/site.css ` is copied into the top level ` static_collected ` folder alongside ` manage.py ` . | |
Django_meta/tutorialdjango_121_0.txt |  | |
Django_meta/django_meta_1_0.txt | [ Django ](https://www.djangoproject.com/)
The web framework for perfectionists with deadlines.
__ Menu
Toggle theme (current theme: auto)
Toggle theme (current theme: light)
Toggle theme (current theme: dark)
Toggle Light / Dark / Auto color theme
* [ Overview ](https://www.djangoproject.com/start/overview/)
... | |
Django_meta/tutorialdjango_228_0.txt |  | |
Django_meta/django_meta_12_0.txt | ### ` order_with_respect_to ` ¶
` Options. ` ` order_with_respect_to ` ¶
Makes this object orderable with respect to the given field, usually a `
ForeignKey ` . This can be used to make related objects orderable with
respect to a parent object. For example, if an ` Answer ` relates to a `
Question ` obje... | |
Django_meta/tutorialdjango_75_0.txt | urlpatterns = [
path("", views.home, name="home"),
] | |
Django_meta/tutorialdjango_111_0.txt | * With the cursor on that line, press F9 , or,
* With the cursor on that line, select the **Run** > **Toggle Breakpoint** menu command, or,
* Click directly in the margin to the left of the line number (a faded red dot appears when hovering there). | |
Django_meta/classbasedviews_58_0.txt | ## Contents | |
Django_meta/classbasedviews_85_0.txt | * [ Sponsor Django ](https://www.djangoproject.com/fundraising/)
* [ Corporate membership ](/foundation/corporate-membership/)
* [ Official merchandise store ](https://django.threadless.com/)
* [ Benevity Workplace Giving Program ](/foundation/donate/#benevity-giving) | |
Django_meta/classbasedviews_74_0.txt | Offline (Django 5.0): [ HTML ](https://media.djangoproject.com/docs/django-
docs-5.0-en.zip) | [ PDF
](https://media.readthedocs.org/pdf/django/5.0.x/django.pdf) | [ ePub
](https://media.readthedocs.org/epub/django/5.0.x/django.epub)
Provided by [ Read the Docs ](https://readthedocs.org/) . | |
Django_meta/introduction_41_0.txt | Getting stuck on an issue happens to every programmer at every level. The only
thing that changes as you become more experienced in your career is the
difficulty of tackling the question. Part of learning how to be a better
developer is accepting this frustration, finding help, asking targeted
questions, and determinin... | |
Django_meta/tutorialdjango_149_0.txt | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello, Django</title>
</head>
<body>
<strong>Hello there, {{ name }}!</strong> It's {{ date | date:"l, d F, Y" }} at {{ date | time:"H:i:s" }}
</body>
</html> | |
Django_meta/tutorialdjango_234_0.txt | In code, too, you work exclusively with your model classes to store and
retrieve data; Django handles the underlying details. The one exception is
that you can write data into your database using the Django administrative
utility [ loaddata command ](https://docs.djangoproject.com/en/3.1/ref/django-
admin/#loaddata) . ... | |
Django_meta/introduction_19_0.txt | With more experience, I now recognize that the writers of the Django docs
faced a difficult choice: they could emphasize Django’s ease of use or depth,
but not both. They choose the latter, and as a professional developer, I
appreciate the decision, but as a beginner, I found it so frustrating! My goal
with this book i... | |
Django_meta/tutorialdjango_175_0.txt | <span class="message">Hello, there {{ name }}!</span> It's {{ date | date:'l, d F, Y' }} at {{ date | time:'H:i:s' }}. | |
Django_meta/tutorialdjango_243_0.txt | from django.db import models
from django.utils import timezone | |
Django_meta/classbasedviews_15_0.txt | * [ 1.8 ](https://docs.djangoproject.com/en/1.8/topics/class-based-views/)
* [ 1.10 ](https://docs.djangoproject.com/en/1.10/topics/class-based-views/)
* [ 1.11 ](https://docs.djangoproject.com/en/1.11/topics/class-based-views/)
* [ 2.0 ](https://docs.djangoproject.com/en/2.0/topics/class-based-views/)
* [ 2.1 ](https:... | |
Django_meta/tutorialdjango_173_0.txt | {% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'hello/site.css' %}" /> | |
Django_meta/tutorialdjango_14_0.txt | # Django Tutorial in Visual Studio Code | |
Django_meta/django_meta_2_0.txt | ### ` abstract ` ¶
` Options. ` ` abstract ` ¶
If ` abstract = True ` , this model will be an [ abstract base class
](../../../topics/db/models/#abstract-base-classes) .
| |
Django_meta/django_meta_3_0.txt | ### ` app_label ` ¶
` Options. ` ` app_label ` ¶
If a model is defined outside of an application in [ ` INSTALLED_APPS `
](../../settings/#std-setting-INSTALLED_APPS) , it must declare which app it
belongs to:
app_label = 'myapp'
If you want to represent a model with the format ` app_l... | |
Django_meta/tutorialdjango_186_0.txt | The following sections walk through different parts of this process. | |
Django_meta/tutorialdjango_218_0.txt | 3. In the ` templates/hello ` folder, create ` about.html ` , use the snippet to insert the boilerplate markup, insert ` About us ` and ` <p>About page for the Visual Studio Code Django tutorial.</p> ` in the "title" and "content" blocks, respectively, then save the file. | |
Django_meta/django_meta_7_0.txt | ### ` db_tablespace ` ¶
` Options. ` ` db_tablespace ` ¶
The name of the [ database tablespace ](../../../topics/db/tablespaces/) to
use for this model. The default is the project’s [ ` DEFAULT_TABLESPACE `
](../../settings/#std-setting-DEFAULT_TABLESPACE) setting, if set. If the
backend doesn’t support t... | |
Django_meta/classbasedviews_69_0.txt | Ask a question in the #django IRC channel, or search the IRC logs to see if it’s been asked before.
[ Django Discord Server ](https://discord.gg/xcRH6mN4fa) | |
Django_meta/introduction_27_0.txt | In **Chapter 2** , we build our first project, a minimal _Hello, World_ app
demonstrating how to set up new Django projects. Because establishing good
software practices is vital, we’ll save our work with Git and upload a copy to
a remote code repository on GitHub. | |
Django_meta/classbasedviews_40_0.txt |
And the view: | |
Django_meta/tutorialdjango_320_0.txt | # This path is included by default when creating the app
path("admin/", admin.site.urls), | |
Django_meta/tutorialdjango_335_0.txt | You may also want to review the following articles in the VS Code docs that
are relevant to Python: | |
Django_meta/tutorialdjango_113_0.txt |  | |
Django_meta/tutorialdjango_41_0.txt | 8. Update pip in the virtual environment by running the following command in the VS Code Terminal: | |
Django_meta/introduction_32_0.txt | The **Conclusion** provides an overview of the central concepts introduced in
the book and a list of recommended resources for further learning. | |
Django_meta/tutorialdjango_275_0.txt | {% extends "hello/layout.html" %}
{% block title %}
Home
{% endblock %}
{% block content %}
<h2>Logged messages</h2> | |
Django_meta/tutorialdjango_152_0.txt |
5. Also in ` views.py ` , modify the ` hello_there ` function to use ` django.shortcuts.render ` method to load a template and to provide the _template context_ . The context is the set of variables for use within the template. The ` render ` function takes the request object, followed by the path to to the template _... | |
Django_meta/modelspy_13_0.txt | def display_genre(self):
"""Creates a string for the Genre. This is required to display genre in Admin."""
return ', '.join([genre.name for genre in self.genre.all()[:3]]) | |
Django_meta/tutorialdjango_81_0.txt |  | |
Django_meta/tutorialdjango_341_0.txt | * [ Support ](https://support.serviceshub.microsoft.com/supportforbusiness/create?sapId=d66407ed-3967-b000-4cfb-2c318cad363d)
* [ Privacy ](https://go.microsoft.com/fwlink/?LinkId=521839)
* Manage Cookies
* [ Terms of Use ](https://www.microsoft.com/legal/terms-of-use)
* [ License ](/License) | |
Django_meta/tutorialdjango_183_0.txt | ## Create multiple templates that extend a base template | |
Django_meta/tutorialdjango_150_0.txt |
4. At the top of ` views.py ` , add the following import statement: | |
Django_meta/tutorialdjango_174_0.txt |
5. Also in ` templates/hello/hello_there.html ` , replace the contents ` <body> ` element with the following markup that uses the ` message ` style instead of a ` <strong> ` tag: | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_20_0.txt |
# torch.cummax ¶
torch. cummax ( _ input _ , _ dim _ , _ * _ , _ out = None _ ) ¶
Returns a namedtuple ` (values, indices) ` where ` values ` is the
cumulative maximum of elements of ` input ` in the dimension ` dim ` . And `
indices ` is the index location of each maximum value found in the ... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_25_11.txt | increasing. Default: ‘min’.
* **factor** ( [ _float_ ](https://docs.python.org/3/library/functions.html#float "\(in Python v3.8\)") ) – Factor by which the learning rate will be reduced. new_lr = lr * factor. Default: 0.1.
* **patience** ( [ _int_ ](https://docs.python.org/3/library/functions.html#int "\(in Py... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_2_3.txt | com/pytorch/pytorch/blob/master/CONTRIBUTING.md)
* [ Resources ](https://pytorch.org/resources)
* [ Tutorials ](https://pytorch.org/tutorials)
* [ Docs ](https://pytorch.org/docs/stable/index.html)
* [ Discuss ](https://discuss.pytorch.org)
* [ Github Issues ](https://github.com/pytorch/pytorch/issues)
* [... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_43_3.txt | esources ](https://pytorch.org/resources)
* [ Github ](https://github.com/pytorch/pytorch)
| |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_374_0.txt |
# torch.argsort ¶
torch. argsort ( _ input _ , _ dim = -1 _ , _ descending = False _ ,
_ stable = False _ ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
Returns the indices that sort a tensor along a given dimension in ascending
order by value.
This is the second value returne... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_133_0.txt |
# torch.Tensor.ldexp ¶
Tensor. ldexp ( _ other _ ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
| |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_113_0.txt |
# torch.logcumsumexp ¶
torch. logcumsumexp ( _ input _ , _ dim _ , _ * _ , _ out = None _ )
→ [ Tensor ](../tensors.html#torch.Tensor "torch.Tensor") ¶
Returns the logarithm of the cumulative summation of the exponentiation of
elements of ` input ` in the dimension ` dim ` .
For summation index... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_94_0.txt |
# torch.narrow ¶
torch. narrow ( _ input _ , _ dim _ , _ start _ , _ length _ ) → [
Tensor ](../tensors.html#torch.Tensor "torch.Tensor") ¶
Returns a new tensor that is a narrowed version of ` input ` tensor. The
dimension ` dim ` is input from ` start ` to ` start + length ` . The
returned t... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_269_0.txt |
# torch.heaviside ¶
torch. heaviside ( _ input _ , _ values _ , _ * _ , _ out = None _ )
→ [ Tensor ](../tensors.html#torch.Tensor "torch.Tensor") ¶
Computes the Heaviside step function for each element in ` input ` . The
Heaviside step function is defined as:
heaviside ( i n p u t , v ... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_458_0.txt |
# torch.Tensor.index_fill_ ¶
Tensor. index_fill_ ( _ dim _ , _ index _ , _ value _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Fills the elements of the ` self ` tensor with value ` value ` by selecting
the indices in the order given in ` index ` .
Parameters
* **dim** ... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_19_5.txt | nitoring large-scale deep
learning applications. ](https://github.com/polyaxon/polyaxon)
[
* torchgeo
* 
* *
Datasets, transforms, and models for geospatial data
](https://github.com/microsoft/torchgeo)
[
* CrypTen
* 
* *
Cry... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_407_0.txt |
# torch.Tensor.resize_as_ ¶
Tensor. resize_as_ ( _ tensor _ , _ memory_format =
torch.contiguous_format _ ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
Resizes the ` self ` tensor to be the same size as the specified [ ` tensor
` ](torch.tensor.html#torch.tensor "torch.tensor") . Th... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_13_3.txt | ected
* Email Address
[ ](https://www.facebook.com/pytorch) [ ](https://twitter.com/pytorch) [
](https://www.youtube.com/pytorch)
To analyze traffic and optimize your experience, we serve cookies on this
site. By clicking or navigating, you agree to allow our usage of cookies. As
the current maintainers of this s... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_47_22.txt | value difference.
See [ ` L1Loss ` ](generated/torch.nn.L1Loss.html#torch.nn.L1Loss
"torch.nn.L1Loss") for details.
### mse_loss ¶
` torch.nn.functional. ` ` mse_loss ` ( _input_ , _target_ ,
_size_average=None_ , _reduce=None_ , _reduction='mean'_ ) → Tensor [
[source] ](_modules/torch/nn/functional.html#mse_... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_353_0.txt |
# torch.Tensor.masked_fill_ ¶
Tensor. masked_fill_ ( _ mask _ , _ value _ ) ¶
Fills elements of ` self ` tensor with ` value ` where ` mask ` is True.
The shape of ` mask ` must be [ broadcastable
](../notes/broadcasting.html#broadcasting-semantics) with the shape of the
underlying tensor.
Paramet... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_64_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_37_12.txt | lts must either match exactly (default, 0.0) or be within this tolerance.
* **check_undefined_grad** ( [ _bool_ ](https://docs.python.org/3/library/functions.html#bool "\(in Python v3.8\)") _,_ _options_ ) – if True, check if undefined output grads are supported and treated as zeros
Returns
True if all dif... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_198_0.txt |
# torch.reciprocal ¶
torch. reciprocal ( _ input _ , _ * _ , _ out = None _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Returns a new tensor with the reciprocal of the elements of ` input `
out i = 1 input i \text{out}_{i} = \frac{1}{\text{input}_{i}} out i
= input ... | |
pytorch_torch_tensor_functions/Visualizing_PyTorch_memory_5_0.txt | ## Generating Memory Visualization from torch.profiler traces
` torch.profiler ` can also record memory usage along with additional helpful
information such as the location in the module hierarchy, the category of
tensor being allocated, the tensor sizes, and the set of operators used to
generate the tensor. Our ` _m... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_58_35.txt | h.mul.html#torch.mul)
* [ (torch.sparse.FloatTensor method) ](sparse.html#torch.sparse.FloatTensor.mul)
* [ (torch.Tensor method) ](tensors.html#torch.Tensor.mul)
* [ mul_() (torch.sparse.FloatTensor method) ](sparse.html#torch.sparse.FloatTensor.mul_)
* [ (torch.Tensor method) ](tensors.html#torch.Tensor... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_52_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/Memory Management_6_1.txt | --
dabe7adec130--------------------------------)
[ Terms ](https://policy.medium.com/medium-terms-of-
service-9db0094a1e0f?source=post_page-----
dabe7adec130--------------------------------)
[ Text to speech ](https://speechify.com/medium?source=post_page-----
dabe7adec130--------------------------------)
[ Teams ... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_50_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_280_0.txt |
# torch.Tensor.is_floating_point ¶
Tensor. is_floating_point ( ) → [ bool
](https://docs.python.org/3/library/functions.html#bool "\(in Python v3.12\)")
¶
Returns True if the data type of ` self ` is a floating point data type.
| |
pytorch_torch_tensor_functions/Pytorch_Documentations_2_1.txt | extension points
This note talks about several extension points and tricks that might be useful
when running PyTorch within a larger system or operating multiple systems
using PyTorch in a larger organization.
It doesn’t cover topics of deploying models to production. Check [ ` torch.jit
` ](../jit.html#module-torch... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_57_3.txt | ution.
_property_ ` support ` ¶
Returns a ` Constraint ` object representing this distribution’s support.
_property_ ` variance ` ¶
Returns the variance of the distribution.
## ExponentialFamily ¶
_class_ ` torch.distributions.exp_family. ` ` ExponentialFamily ` (
_batch_shape=torch.Size([])_ , _e... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_421_0.txt |
# torch.Tensor.apply_ ¶
Tensor. apply_ ( _ callable _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Applies the function ` callable ` to each element in the tensor, replacing
each element with the value returned by ` callable ` .
Note
This function only works with CPU tensors and sh... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_412_0.txt |
# torch.Tensor.arccos ¶
Tensor. arccos ( ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
| |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_236_0.txt |
# torch.Tensor.float_power ¶
Tensor. float_power ( _ exponent _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
| |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_405_0.txt |
# torch.cos ¶
torch. cos ( _ input _ , _ * _ , _ out = None _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Returns a new tensor with the cosine of the elements of ` input ` .
out i = cos ( input i ) \text{out}_{i} = \cos(\text{input}_{i})
out i = cos ( input i... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_25_3.txt | s/v12/duchi11a.html) .
Parameters
* **params** ( _iterable_ ) – iterable of parameters to optimize or dicts defining parameter groups
* **lr** ( [ _float_ ](https://docs.python.org/3/library/functions.html#float "\(in Python v3.8\)") _,_ _optional_ ) – learning rate (default: 1e-2)
* **lr_decay** ( [ ... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_37_16.txt | in>", line 8, in backward
RuntimeError: Some error in backward
>>> with autograd.detect_anomaly():
... inp = torch.rand(10, 10, requires_grad=True)
... out = run_fn(inp)
... out.backward()
Traceback of forward call that caused the error:
File "tmp.py", line 53, in <... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_15_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_58_30.txt | egative_binomial.NegativeBinomial method) ](distributions.html#torch.distributions.negative_binomial.NegativeBinomial.log_prob)
* [ (torch.distributions.normal.Normal method) ](distributions.html#torch.distributions.normal.Normal.log_prob)
* [ (torch.distributions.one_hot_categorical.OneHotCategorical method) ]... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_261_0.txt |
# torch.Tensor.pin_memory ¶
Tensor. pin_memory ( ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
Copies the tensor to pinned memory, if it’s not already pinned.
| |
pytorch_torch_tensor_functions/Pytorch_Documentations_9_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* [ Ecosystem ](https://pytorch.org/ecosystem)
* Edge
[ About PyTorch Edge ](https://pytorch.org/edge) [ ExecuTorch
](https://pytorch.org/executorch)
* [ Blog ](https://pytorch.org/blog/)
* [ Tutorials ](https://pytorch.org/tuto... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_35_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_457_0.txt |
# torch.Tensor.record_stream ¶
Tensor. record_stream ( _ stream _ ) ¶
Marks the tensor as having been used by this stream. When the tensor is
deallocated, ensure the tensor memory is not reused for another tensor until
all work queued on ` stream ` at the time of deallocation is complete.
Note
The ca... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_138_0.txt |
# torch.Tensor.index_fill ¶
Tensor. index_fill ( _ dim _ , _ index _ , _ value _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Out-of-place version of [ ` torch.Tensor.index_fill_() `
](torch.Tensor.index_fill_.html#torch.Tensor.index_fill_
"torch.Tensor.index_fill_") .
| |
pytorch_torch_tensor_functions/Pytorch_Documentations_29_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_11_0.txt |
# torch.Tensor.mvlgamma ¶
Tensor. mvlgamma ( _ p _ ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
| |
pytorch_torch_tensor_functions/Pytorch_Documentations_60_8.txt | >>> rpc.rpc_async(to, torch.add, args=(x, y)).then(
>>> lambda fut: ret_fut.set_result(fut.wait() + z)
>>> )
>>> return ret_fut
>>>
>>> # On worker0
>>> ret = rpc.rpc_sync(
>>> "worker1",
>>> AsyncExecutionClass.static_async_add,
>>> ... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_24_2.txt | ,
_int_ , _None] = None_ ) → str [ [source]
](_modules/torch/cuda.html#get_device_name) ¶
Gets the name of a device.
Parameters
**device** ( [ _torch.device_ ](tensor_attributes.html#torch.torch.device
"torch.torch.device") _or_ [ _int_
](https://docs.python.org/3/library/functions.html#int "\(in Python... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_304_0.txt |
# torch.addmm ¶
torch. addmm ( _ input _ , _ mat1 _ , _ mat2 _ , _ * _ , _ beta = 1
_ , _ alpha = 1 _ , _ out = None _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Performs a matrix multiplication of the matrices ` mat1 ` and ` mat2 ` . The
matrix ` input ` is added to th... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_16_4.txt | the scale is multiplied during ` update() ` if inf/NaN gradients occur in an iteration.
* **growth_interval** ( [ _int_ ](https://docs.python.org/3/library/functions.html#int "\(in Python v3.8\)") _,_ _optional_ _,_ _default=2000_ ) – Number of consecutive iterations without inf/NaN gradients that must occur for ... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_127_0.txt |
# torch.Tensor.le ¶
Tensor. le ( _ other _ ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
| |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_493_0.txt |
# torch.erf ¶
torch. erf ( _ input _ , _ * _ , _ out = None _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
Alias for [ ` torch.special.erf() ` ](../special.html#torch.special.erf
"torch.special.erf") .
| |
pytorch_torch_tensor_functions/Pytorch_Documentations_39_8.txt | imensions
[ ` Tensor.zero_() ` ](tensors.html#torch.Tensor.zero_ "torch.Tensor.zero_") | None
[ ` torch.zeros() ` ](generated/torch.zeros.html#torch.zeros "torch.zeros") | Factory functions
## Keeps input names ¶
All pointwise unary functions follow this rule as well as some other unary
functions.
... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_349_0.txt |
# torch.Tensor.remainder ¶
Tensor. remainder ( _ divisor _ ) → [ Tensor
](../tensors.html#torch.Tensor "torch.Tensor") ¶
| |
pytorch_torch_tensor_functions/Pytorch_Documentations_58_32.txt | (in module torch.cuda) ](cuda.html#torch.cuda.manual_seed_all)
* [ map_() (torch.Tensor method) ](tensors.html#torch.Tensor.map_)
* [ margin_ranking_loss() (in module torch.nn.functional) ](nn.functional.html#torch.nn.functional.margin_ranking_loss)
* [ MarginRankingLoss (class in torch.nn) ](generated/torch.nn.... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_49_3.txt | _attributes.html#torch.torch.dtype "torch.torch.dtype") as this tensor.
* **device** ( [ ` torch.device ` ](tensor_attributes.html#torch.torch.device "torch.torch.device") , optional) – the desired device of returned tensor. Default: if None, same [ ` torch.device ` ](tensor_attributes.html#torch.torch.device "to... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_368_0.txt |
# torch.nn.functional.torch.nn.parallel.data_parallel ¶
torch.nn.parallel. data_parallel ( _ module _ , _ inputs _ , _ device_ids
= None _ , _ output_device = None _ , _ dim = 0 _ , _ module_kwargs =
None _ ) [ [source]
](../_modules/torch/nn/parallel/data_parallel.html#data_parallel) ¶
Evalu... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_45_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_53_4.txt | if torch.lt(i, 10):
rv1 = torch.sub(rv0, 1., 1)
else:
rv1 = torch.add(rv0, 1., 1)
rv0 = rv1
return rv0
This is TorchScript’s compilation of the code for the ` forward ` method. You
can use this to ensure TorchScript (tracing or scripting) has captur... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_58_27.txt | nan)
* [ (torch.Tensor method) ](tensors.html#torch.Tensor.isnan)
* [ istft() (in module torch) ](generated/torch.istft.html#torch.istft)
* [ (torch.Tensor method) ](tensors.html#torch.Tensor.istft)
* [ item() (torch.Tensor method) ](tensors.html#torch.Tensor.item)
* [ items() (torch.nn.ModuleDict method)... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_58_36.txt | orch.Tensor.narrow)
* [ narrow_copy() (torch.sparse.FloatTensor method) ](sparse.html#torch.sparse.FloatTensor.narrow_copy)
* [ (torch.Tensor method) ](tensors.html#torch.Tensor.narrow_copy)
* [ ndim (torch.Tensor attribute) ](tensors.html#torch.Tensor.ndim)
* [ ndimension() (torch.Tensor method) ](tensors.ht... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_42_1.txt | 7z and curl installed.
REM Download MKL files
curl https://s3.amazonaws.com/ossci-windows/mkl_2020.0.166.7z -k -O
7z x -aoa mkl_2018.2.185.7z -omkl
REM Download MAGMA files
REM version available:
REM 2.5.2 (CUDA 9.2 10.0 10.1 10.2) x (Debug Release)
REM 2.5.1 (CUDA 9.2 10.0 10.1 1... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_103_1.txt | torch.Size([10, 3])
>>> # batched matrix x batched matrix
>>> tensor1 = torch.randn(10, 3, 4)
>>> tensor2 = torch.randn(10, 4, 5)
>>> torch.matmul(tensor1, tensor2).size()
torch.Size([10, 3, 5])
>>> # batched matrix x broadcasted matrix
>>> tensor1 = torch.randn(10, 3, 4)
>>> tensor2 ... | |
pytorch_torch_tensor_functions/pytorch_torch_tensor_functions_83_0.txt |
# torch.any ¶
torch. any ( _ input _ ) → [ Tensor ](../tensors.html#torch.Tensor
"torch.Tensor") ¶
Tests if any element in ` input ` evaluates to True .
Note
This function matches the behaviour of NumPy in returning output of dtype
bool for all supported dtypes except uint8 . For uint8 the d... | |
pytorch_torch_tensor_functions/Pytorch_Documentations_1_0.txt | [ ](https://pytorch.org/)
* [ Get Started ](https://pytorch.org/get-started)
* Ecosystem
[ Models (Beta) Discover, publish, and reuse pre-trained models
](https://pytorch.org/hub) [ Tools & Libraries Explore the ecosystem of tools
and libraries ](https://pytorch.org/ecosystem)
* [ Mobile ](https://pytorch.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.