_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_24400 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListSplit
tf.raw_ops.TensorListSplit(
tensor, element_shape, lengths, name=None
)
list[i] corresponds to lengths[i] tensors from the input tensor. The tensor must have rank at least 1 and contain exactly sum(lengths) elements. tensor: The input ten... | |
doc_24401 | Used to create the config attribute by the Flask constructor. The instance_relative parameter is passed in from the constructor of Flask (there named instance_relative_config) and indicates if the config should be relative to the instance path or the root path of the application. Changelog New in version 0.8. Parame... | |
doc_24402 | Find the spec for a module, optionally relative to the specified package name. If the module is in sys.modules, then sys.modules[name].__spec__ is returned (unless the spec would be None or is not set, in which case ValueError is raised). Otherwise a search using sys.meta_path is done. None is returned if no spec is fo... | |
doc_24403 |
An array with ones at and below the given diagonal and zeros elsewhere. Parameters
Nint
Number of rows in the array.
Mint, optional
Number of columns in the array. By default, M is taken equal to N.
kint, optional
The sub-diagonal at and below which the array is filled. k = 0 is the main diagonal, while... | |
doc_24404 | Copies parameters and buffers from state_dict into this module and its descendants. If strict is True, then the keys of state_dict must exactly match the keys returned by this module’s state_dict() function. Parameters
state_dict (dict) – a dict containing parameters and persistent buffers.
strict (bool, optional)... | |
doc_24405 | Must be called if the programmer wants to use colors, and before any other color manipulation routine is called. It is good practice to call this routine right after initscr(). start_color() initializes eight basic colors (black, red, green, yellow, blue, magenta, cyan, and white), and two global variables in the curse... | |
doc_24406 | Returns the current abstract base class cache token. The token is an opaque object (that supports equality testing) identifying the current version of the abstract base class cache for virtual subclasses. The token changes with every call to ABCMeta.register() on any ABC. New in version 3.4. | |
doc_24407 |
Context-manager that enables gradient calculation. Enables gradient calculation, if it has been disabled via no_grad or set_grad_enabled. This context manager is thread local; it will not affect computation in other threads. Also functions as a decorator. (Make sure to instantiate with parenthesis.) Example: >>> x = ... | |
doc_24408 |
Wraps an arbitrary nn.Sequential module to train on using synchronous pipeline parallelism. If the module requires lots of memory and doesn’t fit on a single GPU, pipeline parallelism is a useful technique to employ for training. The implementation is based on the torchgpipe paper. Pipe combines pipeline parallelism ... | |
doc_24409 | Send an HTTPS request, which can be either GET or POST, depending on req.has_data(). | |
doc_24410 | See Migration guide for more details. tf.compat.v1.nn.log_softmax
tf.compat.v1.math.log_softmax(
logits, axis=None, name=None, dim=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (dim). They will be removed in a future version. Instructions for updating: dim is deprecated, use axis instead For each batch i and cl... | |
doc_24411 |
Print the compiler customizations to stdout. Parameters
None
Returns
None
Notes Printing is only done if the distutils log threshold is < 2. | |
doc_24412 |
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters
Xndarray of shape (n_samples_X, n_features)
Left argument of the returned kernel k(X, Y) Returns
K_diagndar... | |
doc_24413 |
Set the color of the line. Parameters
colorcolor | |
doc_24414 | setName()
Old getter/setter API for name; use it directly as a property instead. | |
doc_24415 |
Returns a clone of self with given hyperparameters theta. Parameters
thetandarray of shape (n_dims,)
The hyperparameters | |
doc_24416 | See Migration guide for more details. tf.compat.v1.raw_ops.InfeedDequeue
tf.raw_ops.InfeedDequeue(
dtype, shape, name=None
)
Args
dtype A tf.DType. The type of elements in the tensor.
shape A tf.TensorShape or list of ints. The shape of the tensor.
name A name for the operation (optional). ... | |
doc_24417 | Return the canonical encoding of the argument. Currently, the encoding of a Decimal instance is always canonical, so this operation returns its argument unchanged. | |
doc_24418 | The maximum size (in bytes) of socket buffer usage for this user. This limits the amount of network memory, and hence the amount of mbufs, that this user may hold at any time. Availability: FreeBSD 9 or later. New in version 3.4. | |
doc_24419 | os.O_WRONLY
os.O_RDWR
os.O_APPEND
os.O_CREAT
os.O_EXCL
os.O_TRUNC
The above constants are available on Unix and Windows. | |
doc_24420 | The Sniffer class is used to deduce the format of a CSV file. The Sniffer class provides two methods:
sniff(sample, delimiters=None)
Analyze the given sample and return a Dialect subclass reflecting the parameters found. If the optional delimiters parameter is given, it is interpreted as a string containing possibl... | |
doc_24421 |
The gated linear unit. Computes: GLU(a,b)=a⊗σ(b)\text{GLU}(a, b) = a \otimes \sigma(b)
where input is split in half along dim to form a and b, σ\sigma is the sigmoid function and ⊗\otimes is the element-wise product between matrices. See Language Modeling with Gated Convolutional Networks. Parameters
input (... | |
doc_24422 | A string describing the name of the field on the user model that is used as the unique identifier. This will usually be a username of some kind, but it can also be an email address, or any other unique identifier. The field must be unique (i.e., have unique=True set in its definition), unless you use a custom authentic... | |
doc_24423 |
Calculate the rolling minimum. Parameters
*args
For NumPy compatibility and will not have an effect on the result.
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba.
None : Defaults to 'cython' or global... | |
doc_24424 | Return the cosine of x radians. | |
doc_24425 | Create a subprocess. The limit argument sets the buffer limit for StreamReader wrappers for Process.stdout and Process.stderr (if subprocess.PIPE is passed to stdout and stderr arguments). Return a Process instance. See the documentation of loop.subprocess_exec() for other parameters. Deprecated since version 3.8, wil... | |
doc_24426 | tf.compat.v1.data.make_one_shot_iterator(
dataset
)
Note: The returned iterator will be initialized automatically. A "one-shot" iterator does not support re-initialization.
Args
dataset A tf.data.Dataset.
Returns A tf.data.Iterator for elements of dataset. | |
doc_24427 |
Register a custom accessor on Index objects. Parameters
name:str
Name under which the accessor should be registered. A warning is issued if this name conflicts with a preexisting attribute. Returns
callable
A class decorator. See also register_dataframe_accessor
Register a custom accessor on DataFr... | |
doc_24428 | Called right before the application context is popped. When handling a request, the application context is popped after the request context. See do_teardown_request(). This calls all functions decorated with teardown_appcontext(). Then the appcontext_tearing_down signal is sent. This is called by AppContext.pop(). Cha... | |
doc_24429 | See Migration guide for more details. tf.compat.v1.image.random_jpeg_quality
tf.image.random_jpeg_quality(
image, min_jpeg_quality, max_jpeg_quality, seed=None
)
min_jpeg_quality must be in the interval [0, 100] and less than max_jpeg_quality. max_jpeg_quality must be in the interval [0, 100]. Usage Example:
x ... | |
doc_24430 | Returns an HTML string with all help texts in an <ul>. This is helpful when adding password validation to forms, as you can pass the output directly to the help_text parameter of a form field. | |
doc_24431 | Same as the get_db_prep_value(), but called when the field value must be saved to the database. By default returns get_db_prep_value(). | |
doc_24432 |
Return Index with duplicate values removed. Parameters
keep:{‘first’, ‘last’, False}, default ‘first’
‘first’ : Drop duplicates except for the first occurrence. ‘last’ : Drop duplicates except for the last occurrence. False : Drop all duplicates. Returns
deduplicated:Index
See also Series.drop_dup... | |
doc_24433 | tf.compat.v1.while_loop(
cond, body, loop_vars, shape_invariants=None, parallel_iterations=10,
back_prop=True, swap_memory=False, name=None, maximum_iterations=None,
return_same_structure=False
)
cond is a callable returning a boolean scalar tensor. body is a callable returning a (possibly nested) tuple, n... | |
doc_24434 | Expand this tensor to the same size as other. self.expand_as(other) is equivalent to self.expand(other.size()). Please see expand() for more information about expand. Parameters
other (torch.Tensor) – The result tensor has the same size as other. | |
doc_24435 |
Convert times to midnight. The time component of the date-time is converted to midnight i.e. 00:00:00. This is useful in cases, when the time does not matter. Length is unaltered. The timezones are unaffected. This method is available on Series with datetime values under the .dt accessor, and directly on Datetime Arr... | |
doc_24436 | torch.quantization.quantize(model, run_fn, run_args, mapping=None, inplace=False) [source]
Quantize the input float model with post training static quantization. First it will prepare the model for calibration, then it calls run_fn which will run the calibration step, after that we will convert the model to a quantiz... | |
doc_24437 |
Set the rotation of the text. Parameters
sfloat or {'vertical', 'horizontal'}
The rotation angle in degrees in mathematically positive direction (counterclockwise). 'horizontal' equals 0, 'vertical' equals 90. | |
doc_24438 |
Remove an event from the event list -- by default, the last. Note that this does not check that there are events, much like the normal pop method. If no events exist, this will throw an exception. | |
doc_24439 | If you need to disable a site-wide action you can call AdminSite.disable_action(). For example, you can use this method to remove the built-in “delete selected objects” action: admin.site.disable_action('delete_selected')
Once you’ve done the above, that action will no longer be available site-wide. If, however, you n... | |
doc_24440 |
Bases: matplotlib.transforms.Transform The inverse of the polar transform, mapping Cartesian coordinate space x and y back to theta and r. Parameters
shorthand_namestr
A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when... | |
doc_24441 |
Return the url. | |
doc_24442 |
Alias for get_facecolor. | |
doc_24443 | Return a string representation of the ASCII character c. If c is printable, this string is the character itself. If the character is a control character (0x00–0x1f) the string consists of a caret ('^') followed by the corresponding uppercase letter. If the character is an ASCII delete (0x7f) the string is '^?'. If the ... | |
doc_24444 |
Return the joinstyle. | |
doc_24445 | Set search_fields to enable a search box on the admin change list page. This should be set to a list of field names that will be searched whenever somebody submits a search query in that text box. These fields should be some kind of text field, such as CharField or TextField. You can also perform a related lookup on a ... | |
doc_24446 |
Return x to the power p, (x**p). If x contains negative values, the output is converted to the complex domain. Parameters
xarray_like
The input value(s).
parray_like of ints
The power(s) to which x is raised. If x contains multiple values, p has to either be a scalar, or contain the same number of values as... | |
doc_24447 |
For each element in self, return a copy with the trailing characters removed. See also char.rstrip | |
doc_24448 |
Apply hysteresis thresholding to image. This algorithm finds regions where image is greater than high OR image is greater than low and that region is connected to a region greater than high. Parameters
imagearray, shape (M,[ N, …, P])
Grayscale input image.
lowfloat, or array of same shape as image
Lower th... | |
doc_24449 | stop handling Unicode text input events stop_text_input() -> None Stop receiving pygame.TEXTEDITING and pygame.TEXTINPUT events. Text input events handling is on by default New in pygame 2.0.0. | |
doc_24450 |
Perform regression on samples in X. For an one-class model, +1 (inlier) or -1 (outlier) is returned. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
For kernel=”precomputed”, the expected shape of X is (n_samples_test, n_samples_train). Returns
y_predndarray of shape (n_samples,) | |
doc_24451 | Exception raised on any errors. The reason for the exception is passed to the constructor as a string. | |
doc_24452 |
Return whether the artist is animated. | |
doc_24453 | re.VERBOSE
This flag allows you to write regular expressions that look nicer and are more readable by allowing you to visually separate logical sections of the pattern and add comments. Whitespace within the pattern is ignored, except when in a character class, or when preceded by an unescaped backslash, or within to... | |
doc_24454 | Turn a 10-tuple as returned by parsedate_tz() into a UTC timestamp (seconds since the Epoch). If the timezone item in the tuple is None, assume local time. | |
doc_24455 | Leave cbreak mode. Return to normal “cooked” mode with line buffering. | |
doc_24456 |
Get parameters for this estimator. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_24457 | Recursively move a file or directory (src) to another location (dst) and return the destination. If the destination is an existing directory, then src is moved inside that directory. If the destination already exists but is not a directory, it may be overwritten depending on os.rename() semantics. If the destination is... | |
doc_24458 |
Call self as a function. | |
doc_24459 | glob.glob(pathname, *, recursive=False)
Return a possibly-empty list of path names that match pathname, which must be a string containing a path specification. pathname can be either absolute (like /usr/src/Python-1.5/Makefile) or relative (like ../../Tools/*/*.gif), and can contain shell-style wildcards. Broken syml... | |
doc_24460 | tf.compat.v1.logging.set_verbosity(
v
) | |
doc_24461 | See Migration guide for more details. tf.compat.v1.raw_ops.AnonymousRandomSeedGenerator
tf.raw_ops.AnonymousRandomSeedGenerator(
seed, seed2, name=None
)
Args
seed A Tensor of type int64.
seed2 A Tensor of type int64.
name A name for the operation (optional).
Returns A tuple of Ten... | |
doc_24462 | See Migration guide for more details. tf.compat.v1.image.adjust_jpeg_quality
tf.image.adjust_jpeg_quality(
image, jpeg_quality, name=None
)
This is a convenience method that converts an image to uint8 representation, encodes it to jpeg with jpeg_quality, decodes it, and then converts back to the original data ty... | |
doc_24463 |
Bases: torch.distributions.distribution.Distribution Creates a Multinomial distribution parameterized by total_count and either probs or logits (but not both). The innermost dimension of probs indexes over categories. All other dimensions index over batches. Note that total_count need not be specified if only log_pro... | |
doc_24464 |
Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters
valobject
Value to be placed in field.
dtypedtype object
Data-type of the field in which to place val.
offsetint, optional
The number of b... | |
doc_24465 |
Lily of the valley plant stem. This plant stem on a pre-prepared slide was imaged with confocal fluorescence microscopy (Nikon C1 inverted microscope). Image shape is (922, 922, 4). That is 922x922 pixels in X-Y, with 4 color channels. Real-space voxel size is 1.24 microns in X-Y. Data type is unsigned 16-bit integer... | |
doc_24466 | Return the main Thread object. In normal conditions, the main thread is the thread from which the Python interpreter was started. New in version 3.4. | |
doc_24467 | django.db.models.signals.pre_init
Whenever you instantiate a Django model, this signal is sent at the beginning of the model’s __init__() method. Arguments sent with this signal:
sender The model class that just had an instance created.
args A list of positional arguments passed to __init__().
kwargs A diction... | |
doc_24468 | Returns a boolean indicating whether the geometry is a LinearRing. | |
doc_24469 | Read until newline or EOF and return a single str. If the stream is already at EOF, an empty string is returned. If size is specified, at most size characters will be read. | |
doc_24470 | Wait until the close() method completes. | |
doc_24471 | lt(other) -> Tensor See torch.less(). | |
doc_24472 | A specialized alternative to CGIHandler, for use when deploying on Microsoft’s IIS web server, without having set the config allowPathInfo option (IIS>=7) or metabase allowPathInfoForScriptMappings (IIS<7). By default, IIS gives a PATH_INFO that duplicates the SCRIPT_NAME at the front, causing problems for WSGI applica... | |
doc_24473 | See Migration guide for more details. tf.compat.v1.linalg.LinearOperator
tf.linalg.LinearOperator(
dtype, graph_parents=None, is_non_singular=None, is_self_adjoint=None,
is_positive_definite=None, is_square=None, name=None, parameters=None
)
Subclasses of LinearOperator provide access to common methods on a ... | |
doc_24474 |
Return length of the ticks in points. | |
doc_24475 |
Raise self to the power other, in place. | |
doc_24476 | Inplace row normalize using the l1 norm | |
doc_24477 | Gets the Surface the PixelArray uses. surface -> Surface The Surface the PixelArray was created for. | |
doc_24478 | tf.compat.v1.get_collection(
key, scope=None
)
See tf.Graph.get_collection for more details.
Args
key The key for the collection. For example, the GraphKeys class contains many standard names for collections.
scope (Optional.) If supplied, the resulting list is filtered to include only items whose n... | |
doc_24479 |
Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted
equivalent function | |
doc_24480 |
Bases: object The base class for anything that participates in the transform tree and needs to invalidate its parents or be invalidated. This includes classes that are not really transforms, such as bounding boxes, since some transforms depend on bounding boxes to compute their values. Parameters
shorthand_namest... | |
doc_24481 |
A class to hold the parameters for a subplot. Defaults are given by rcParams["figure.subplot.[name]"]. Parameters
leftfloat
The position of the left edge of the subplots, as a fraction of the figure width.
rightfloat
The position of the right edge of the subplots, as a fraction of the figure width.
bottom... | |
doc_24482 | See Migration guide for more details. tf.compat.v1.data.experimental.copy_to_device
tf.data.experimental.copy_to_device(
target_device, source_device='/cpu:0'
)
Args
target_device The name of a device to which elements will be copied.
source_device The original device on which input_dataset will b... | |
doc_24483 |
Applies the rectified linear unit function element-wise: ReLU(x)=(x)+=max(0,x)\text{ReLU}(x) = (x)^+ = \max(0, x) Parameters
inplace – can optionally do the operation in-place. Default: False Shape:
Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the... | |
doc_24484 |
Prune entire (currently unpruned) channels in a tensor at random. Parameters
amount (int or float) – quantity of parameters to prune. If float, should be between 0.0 and 1.0 and represent the fraction of parameters to prune. If int, it represents the absolute number of parameters to prune.
dim (int, optional) – ... | |
doc_24485 | Read a plist file. fp should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary). The fmt is the format of the file and the following values are valid:
None: Autodetect the file format
FMT_XML: XML file format
FMT_BINARY: Binary plist format The dict_type is the ty... | |
doc_24486 |
Check if types match. New in version 1.7.0. Parameters
otherobject
Class instance. Returns
boolboolean
True if other is same class as self | |
doc_24487 | The version string of the zlib library actually loaded by the interpreter. New in version 3.3. | |
doc_24488 |
This is a sequential container which calls the Conv1d and ReLU modules. During quantization this will be replaced with the corresponding fused module. | |
doc_24489 |
Update the subplot position from figure.subplotpars. | |
doc_24490 |
Return unbiased kurtosis over requested axis. Kurtosis obtained using Fisher’s definition of kurtosis (kurtosis of normal == 0.0). Normalized by N-1. Parameters
axis:{index (0), columns (1)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result. ... | |
doc_24491 | Outputs the feed in the given encoding to outfile, which is a file-like object. Subclasses should override this. | |
doc_24492 | Register a custom template global, available application wide. Like Flask.template_global() but for a blueprint. Changelog New in version 0.10. Parameters
name (Optional[str]) – the optional name of the global, otherwise the function name will be used. Return type
Callable | |
doc_24493 | Return the inverse hyperbolic tangent of x. | |
doc_24494 | The format of a MIME document allows for some text between the blank line following the headers, and the first multipart boundary string. Normally, this text is never visible in a MIME-aware mail reader because it falls outside the standard MIME armor. However, when viewing the raw text of the message, or when viewing ... | |
doc_24495 |
A torch.nn.ConvTranspose1d module with lazy initialization of the in_channels argument of the ConvTranspose1d that is inferred from the input.size(1). Parameters
out_channels (int) – Number of channels produced by the convolution
kernel_size (int or tuple) – Size of the convolving kernel
stride (int or tuple, o... | |
doc_24496 |
Callback processing for mouse movement events. Backend derived classes should call this function on any motion-notify-event. This method will call all functions connected to the 'motion_notify_event' with a MouseEvent instance. Parameters
xfloat
The canvas coordinates where 0=left.
yfloat
The canvas coordin... | |
doc_24497 | tf.keras.layers.AvgPool2D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.AveragePooling2D, tf.compat.v1.keras.layers.AvgPool2D
tf.keras.layers.AveragePooling2D(
pool_size=(2, 2), strides=None, padding='valid', data_format=None,
**kwargs
)
Arguments
pool_si... | |
doc_24498 |
Set the text size. | |
doc_24499 | The EnvBuilder class accepts the following keyword arguments on instantiation:
system_site_packages – a Boolean value indicating that the system Python site-packages should be available to the environment (defaults to False).
clear – a Boolean value which, if true, will delete the contents of any existing target dir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.