Package | Description |
---|---|
org.bytedeco.pytorch | |
org.bytedeco.pytorch.global |
Modifier and Type | Method and Description |
---|---|
DeviceOptional |
OptionalDeviceGuard.current_device()
Returns the most recent device that was set using this device guard,
either from construction, or via reset_device.
|
DeviceOptional |
TensorOptions.device_opt()
Returns the device of the
TensorOptions , or c10::nullopt if
device is not specified. |
DeviceOptional |
OperandInfo.device()
The desired device and type for the operand.
|
DeviceOptional |
TensorType.device() |
DeviceOptional |
OptionalDeviceGuard.original_device()
Returns the device that was set at the time the guard was constructed.
|
DeviceOptional |
DeviceOptional.put(Device value) |
DeviceOptional |
DeviceOptional.put(DeviceOptional x) |
Modifier and Type | Method and Description |
---|---|
Module |
ConvTranspose2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
GroupNormImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
DropoutImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
FlattenImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
BatchNorm1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReflectionPad2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Conv1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MaxPool1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LayerNormImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReflectionPad1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
CrossEntropyLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ZeroPad3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReLUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ParameterDictImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ModuleListImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
GRUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MultiLabelMarginLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ModuleDictImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
HardshrinkImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SmoothL1LossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AvgPool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LinearImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TransformerDecoderImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ConstantPad1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveMaxPool3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Module.clone(DeviceOptional device)
Performs a recursive deep copy of the module and all its registered
parameters, buffers and submodules.
|
Module |
LPPool1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SoftMarginLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReflectionPad3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
CosineSimilarityImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AvgPool1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
RNNImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MishImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReplicationPad3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
BCEWithLogitsLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MaxPool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReLU6ImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ModuleListImpl.clone(DeviceOptional device)
Special cloning function for
ModuleList because it does not use
reset() . |
Module |
TransformerEncoderLayerImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MaxUnpool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SiLUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TripletMarginWithDistanceLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
InstanceNorm1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MarginRankingLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LSTMImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
BatchNorm3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Softmax2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SequentialImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ConvTranspose1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TanhImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ELUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReplicationPad1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
PixelUnshuffleImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ConstantPad3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveLogSoftmaxWithLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LeakyReLUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
HingeEmbeddingLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ThresholdImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
PoissonNLLLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
PairwiseDistanceImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveMaxPool1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
PReLUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ModuleDictImpl.clone(DeviceOptional device)
Special cloning function for
ModuleDict because it does not use
reset() . |
Module |
MaxPool3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LocalResponseNormImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
UnflattenImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
CTCLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
FractionalMaxPool3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MaxUnpool3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
EmbeddingImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveAvgPool3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
InstanceNorm3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
BCELossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
GELUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveMaxPool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
EmbeddingBagImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MultiheadAttentionImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SoftplusImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
PixelShuffleImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ConvTranspose3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MultiMarginLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ConstantPad2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AvgPool3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
NLLLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
HardtanhImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
L1LossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
RNNCellImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SoftminImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Dropout2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
FeatureAlphaDropoutImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveAvgPool1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
KLDivLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ParameterListImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
BilinearImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MultiLabelSoftMarginLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SoftmaxImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Conv2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AlphaDropoutImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
UnfoldImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
UpsampleImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
FractionalMaxPool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TransformerDecoderLayerImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TanhshrinkImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
CrossMapLRN2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MSELossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TransformerEncoderImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
AdaptiveAvgPool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LogSoftmaxImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
GLUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ReplicationPad2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
RReLUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
CELUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SoftsignImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
HuberLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
AnyModule |
AnyModule.clone(DeviceOptional device)
Creates a deep copy of an
AnyModule if it contains a module, else an
empty AnyModule if it is empty. |
Module |
LPPool2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
BatchNorm2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ZeroPad2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
ZeroPad1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
MaxUnpool1dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
FoldImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SoftshrinkImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SequentialImpl.clone(DeviceOptional device)
Special cloning function for
Sequential because it does not use
reset() . |
Module |
SigmoidImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LogSigmoidImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
IdentityImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Dropout3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TransformerImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
LSTMCellImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
Conv3dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
SELUImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
GRUCellImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
CosineEmbeddingLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
TripletMarginLossImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
Module |
InstanceNorm2dImplCloneable.clone(DeviceOptional device)
Performs a recursive "deep copy" of the
Module , such that all parameters
and submodules in the cloned module are different from those in the
original module. |
static TensorType |
TensorType.create(ScalarTypeOptional scalar_type,
DeviceOptional device,
LongVaryingShape sizes,
LongVaryingShape strides,
BoolOptional requires_grad) |
static TensorType |
TensorType.create(ScalarTypeOptional scalar_type,
DeviceOptional device,
LongVaryingShape sizes,
LongVaryingShape strides,
BoolOptional requires_grad,
BoolOptional undefined,
boolean tensor_contiguity) |
static TensorType |
TensorType.create(ScalarTypeOptional scalar_type,
DeviceOptional device,
SizeTOptional dim,
BoolOptional requires_grad) |
static TensorType |
TensorType.create(ScalarTypeOptional scalar_type,
DeviceOptional device,
SymbolicShape sizes,
StrideVaryingShape stride_,
BoolOptional requires_grad) |
static TensorType |
TensorType.create(ScalarTypeOptional scalar_type,
DeviceOptional device,
SymbolicShape sizes,
StrideVaryingShape stride_,
BoolOptional requires_grad,
BoolOptional undefined) |
JitModule |
JitModule.deepcopy(DeviceOptional device) |
IValue |
IValue.deepcopy(DeviceOptional device) |
IValue |
IValue.deepcopy(HashAliasedIValueMap memo,
DeviceOptional device) |
OperandInfo |
OperandInfo.device(DeviceOptional setter) |
TensorOptions |
TensorOptions.device(DeviceOptional device)
Return a copy of
TensorOptions with device set to the given one, or
cleared if device is nullopt . |
boolean |
Tensor.is_pinned(DeviceOptional device) |
void |
InputArchive.load_from(BytePointer filename,
DeviceOptional device)
Loads the
InputArchive from a serialized representation stored in the
file at filename . |
void |
InputArchive.load_from(BytePointer data,
long size,
DeviceOptional device) |
void |
InputArchive.load_from(Pointer stream,
DeviceOptional device)
Loads the
InputArchive from a serialized representation stored in the
given stream . |
void |
InputArchive.load_from(Reader read_func,
SizeTSupplier size_func,
DeviceOptional device) |
void |
InputArchive.load_from(String filename,
DeviceOptional device) |
void |
InputArchive.load_from(String data,
long size,
DeviceOptional device) |
Tensor |
Tensor.new_empty_strided_symint(SymIntArrayRef size,
SymIntArrayRef stride,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_empty_strided(long[] size,
long[] stride,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_empty_strided(LongArrayRef size,
LongArrayRef stride,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_empty_symint(SymIntArrayRef size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_empty(long[] size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_empty(LongArrayRef size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_full_symint(SymIntArrayRef size,
Scalar fill_value,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_full(long[] size,
Scalar fill_value,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_full(LongArrayRef size,
Scalar fill_value,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_ones_symint(SymIntArrayRef size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_ones(long[] size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_ones(LongArrayRef size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_zeros_symint(SymIntArrayRef size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_zeros(long[] size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.new_zeros(LongArrayRef size,
ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory) |
Tensor |
Tensor.pin_memory(DeviceOptional device) |
DeviceOptional |
DeviceOptional.put(DeviceOptional x) |
TensorMaker |
TensorMaker.target_device(DeviceOptional value) |
Tensor |
Tensor.to(ScalarTypeOptional dtype,
LayoutOptional layout,
DeviceOptional device,
BoolOptional pin_memory,
boolean non_blocking,
boolean copy,
MemoryFormatOptional memory_format) |
TensorType |
TensorType.withDevice(DeviceOptional device) |
Constructor and Description |
---|
OptionalDeviceGuard(DeviceOptional device)
Initialize the guard if a Device is passed; otherwise leave the
guard uninitialized.
|
TensorImpl(DispatchKeySet arg0,
TypeMeta data_type,
DeviceOptional device_opt)
Construct a 1-dim 0 size tensor that doesn't have a storage.
|
TensorImpl(short dispatch_key,
TypeMeta data_type,
DeviceOptional device_opt) |
TensorImpl(torch.DispatchKey dispatch_key,
TypeMeta data_type,
DeviceOptional device_opt) |
Modifier and Type | Method and Description |
---|---|
static DeviceOptional |
torch.device_of(Tensor t)
Return the Device of a Tensor, if the Tensor is defined.
|
static DeviceOptional |
torch.device_of(TensorArrayRef t)
Return the Device of a TensorList, if the list is non-empty and
the first Tensor is defined.
|
static DeviceOptional |
torch.device_of(TensorOptional t) |
static DeviceOptional |
torch.device_of(TensorVector t) |
Copyright © 2024. All rights reserved.