/usr/local/lib64/python3.6/site-packages/torch/include/ATen/core
NameSizeModeActions
boxing/-0755rm
dispatch/-0755rm
op_registration/-0755rm
alias_info.h29860644editdlrm
Array.h7680644editdlrm
ATenGeneral.h450644editdlrm
ATenOpList.h2460644editdlrm
aten_interned_strings.h253890644editdlrm
Backtrace.h590644editdlrm
blob.h54220644editdlrm
builtin_function.h36490644editdlrm
DeprecatedTypeProperties.h37730644editdlrm
DeprecatedTypePropertiesRegistry.h7950644editdlrm
Dict.h131950644editdlrm
Dict_inl.h79960644editdlrm
Dimname.h11880644editdlrm
DimVector.h2470644editdlrm
DistributionsHelper.h125940644editdlrm
Formatting.h9590644editdlrm
function.h21450644editdlrm
functional.h14600644editdlrm
function_schema.h135770644editdlrm
function_schema_inl.h93190644editdlrm
Generator.h49350644editdlrm
grad_mode.h2100644editdlrm
interned_strings.h253320644editdlrm
interned_strings_class.h7700644editdlrm
ivalue.h388230644editdlrm
ivalue_inl.h599630644editdlrm
ivalue_to.h7560644editdlrm
jit_type.h759710644editdlrm
jit_type_base.h65080644editdlrm
LegacyTypeDispatch.h46260644editdlrm
List.h156670644editdlrm
List_inl.h110120644editdlrm
Macros.h440644editdlrm
MT19937RNGEngine.h64100644editdlrm
NamedTensor.h50500644editdlrm
operator_name.h30180644editdlrm
PhiloxRNGEngine.h64960644editdlrm
PythonModeTLS.h4030644editdlrm
qualified_name.h43580644editdlrm
QuantizerBase.h24430644editdlrm
Range.h4180644editdlrm
Reduction.h4610644editdlrm
rref_interface.h11440644editdlrm
Scalar.h290644editdlrm
ScalarType.h330644editdlrm
stack.h60340644editdlrm
Tensor.h17560644editdlrm
TensorAccessor.h102960644editdlrm
TensorBase.h327670644editdlrm
TensorBody.h2475550644editdlrm
TransformationHelper.h69110644editdlrm
typeid.h290644editdlrm
UndefinedTensorImpl.h420644editdlrm
UnsafeFromTH.h7080644editdlrm
VariableHooksInterface.h33120644editdlrm
Variadic.h22570644editdlrm
Vitals.h23050644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/ATen/core/Vitals.h (2305B)
#pragma once #include #include #include #include #include #include #include namespace at { namespace vitals { TORCH_API bool torchVitalEnabled(); struct TORCH_API TorchVitalAttr { // always initialized to empty std::string value = ""; template TorchVitalAttr& operator<<(const T& t) { if (torchVitalEnabled()) { std::stringstream ss; ss << t; value += ss.str(); } return *this; } template void write(const T& t, bool force) { if (force || torchVitalEnabled()) { std::stringstream ss; ss << t; value = ss.str(); } } }; struct TORCH_API TorchVital { std::string name; std::unordered_map attrs; explicit TorchVital(std::string n) : name(std::move(n)) {} TorchVital() = delete; TorchVitalAttr& create(const std::string& attr); TorchVitalAttr& create(const std::string& attr, bool force); friend std::ostream& operator<<(std::ostream& os, const TorchVital& dt); ~TorchVital(); }; std::ostream& operator<<(std::ostream& os, TorchVital const& tv); // A way to access vitals by string names instead of by global reference. // This enables access to vitals from the PythonAPI. class TORCH_API APIVitals { public: bool vitals_enabled; // Set any vital sign that was added to the map. bool setVital( const std::string& vital_name, const std::string& attr_name, const std::string& value, bool force = false); std::string readVitals(); APIVitals(); // Ensure this stays a singleton APIVitals(APIVitals const& other) = delete; APIVitals(APIVitals&& other) = delete; APIVitals& operator=(const APIVitals&) = delete; APIVitals& operator=(APIVitals&&) = delete; private: std::unordered_map name_map_; }; extern TORCH_API APIVitals VitalsAPI; } // namespace vitals } // namespace at #define TORCH_VITAL_DECLARE(name) \ TORCH_API at::vitals::TorchVital TorchVital_##name; #define TORCH_VITAL_DEFINE(name) \ TORCH_API at::vitals::TorchVital TorchVital_##name(#name); #define TORCH_VITAL_BASE(name) TorchVital_##name #define TORCH_VITAL(name, attr) TORCH_VITAL_BASE(name).create(#attr)