Home
last modified time | relevance | path

Searched defs:scalar_type (Results 1 – 25 of 112) sorted by relevance

12345

/external/ml_dtypes/ml_dtypes/tests/
Dintn_test.py57 def testModuleName(self, scalar_type): argument
61 def testPickleable(self, scalar_type): argument
73 def testRoundTripToPythonScalar(self, scalar_type, python_scalar): argument
82 def testRoundTripNumpyTypes(self, scalar_type): argument
95 def testStr(self, scalar_type): argument
100 def testRepr(self, scalar_type): argument
105 def testItem(self, scalar_type): argument
110 def testHash(self, scalar_type): argument
125 def testComparison(self, scalar_type, op): argument
139 def testUnop(self, scalar_type, op): argument
[all …]
/external/pytorch/torch/csrc/utils/
Dtensor_new.cpp55 at::ScalarType scalar_type, in build_options()
71 at::ScalarType scalar_type, in new_with_sizes()
81 at::ScalarType scalar_type, in new_with_storage()
88 std::vector<int64_t> compute_sizes(PyObject* seq, ScalarType scalar_type) { in compute_sizes()
292 at::ScalarType scalar_type, in internal_new_from_data()
501 at::ScalarType scalar_type, in new_from_data_copy()
516 at::ScalarType scalar_type, in legacy_new_from_sequence()
603 at::ScalarType scalar_type, in legacy_sparse_tensor_generic_ctor_new()
707 at::ScalarType scalar_type, in legacy_tensor_generic_ctor_new()
826 at::ScalarType scalar_type, in legacy_tensor_ctor()
[all …]
Dtensor_types.cpp103 auto scalar_type = torch::tensors::get_default_scalar_type(); in options_from_string() local
172 for (auto& scalar_type : scalar_types) { in all_declared_types() local
/external/pytorch/torch/csrc/jit/passes/onnx/
Dscalar_type_analysis.cpp89 const c10::ScalarType& scalar_type) { in CreateProfiledTensorTypeWithScalarType()
160 [&typesFromTensors, &typesFromScalars](at::ScalarType scalar_type) { in InferExpectedScalarType()
215 auto scalar_type = tensor.scalar_type(); in InferExpectedScalarType() local
222 } else if (auto scalar_type = get_scalar_type(input)) { in InferExpectedScalarType() local
284 const c10::ScalarType& scalar_type) { in LowPrecisionCastForStandardOps()
299 const c10::ScalarType& scalar_type) { in UpdateScalarTypeForInputs()
356 const c10::ScalarType& scalar_type) { in UpdateScalarTypeForOutput()
365 const c10::ScalarType& scalar_type) { in RecoverScalarTypeForOutput()
/external/pytorch/torch/csrc/
DDtype.cpp15 PyObject* THPDtype_New(at::ScalarType scalar_type, const std::string& name) { in THPDtype_New()
80 auto scalar_type = self->scalar_type; in THPDtype_to_real() local
91 auto scalar_type = self->scalar_type; in THPDtype_to_complex() local
DDtype.h10 PyObject_HEAD at::ScalarType scalar_type; member
/external/pytorch/aten/src/ATen/core/
Dtensor_type.cpp277 std::optional<at::ScalarType> scalar_type, in create()
307 std::optional<at::ScalarType> scalar_type, in create()
319 std::optional<at::ScalarType> scalar_type, in create()
358 auto scalar_type = merge_primitive(scalarType(), other.scalarType()); in merge() local
434 std::optional<at::ScalarType> scalar_type, in TensorType()
449 at::ScalarType scalar_type, in createContiguous()
DQuantizerBase.h59 ScalarType scalar_type() const { in scalar_type() function
/external/executorch/kernels/portable/cpu/test/
Dscalar_utils_test.cpp31 #define CALL_TEST_ONE(cpp_type, scalar_type) \ in testAll() argument
68 #define INSTANTIATE_TYPE_TEST(cpp_type, scalar_type) \ in TEST() argument
/external/executorch/runtime/executor/
Dmethod_meta.cpp57 exec_aten::ScalarType scalar_type) { in calculate_nbytes()
71 exec_aten::ScalarType scalar_type, in TensorInfo()
87 exec_aten::ScalarType TensorInfo::scalar_type() const { in scalar_type() function in executorch::runtime::TensorInfo
Dtensor_parser_portable.cpp40 ScalarType scalar_type = static_cast<ScalarType>(s_tensor->scalar_type()); in parseTensor() local
/external/pytorch/aten/src/ATen/
DEmptyTensor.cpp167 ScalarType scalar_type, in _empty_generic()
201 ScalarType scalar_type, in empty_generic()
210 ScalarType scalar_type, in empty_generic_symint()
221 ScalarType scalar_type) { in _empty_strided_generic()
243 ScalarType scalar_type) { in empty_strided_generic()
252 ScalarType scalar_type) { in empty_strided_symint_generic()
384 auto scalar_type = dtype_or_default(dtype_opt); in empty_symint_meta() local
DUtils.h33 ScalarType scalar_type) { in checked_dense_tensor_list_unwrap()
/external/pytorch/aten/src/ATen/cuda/
DCUDADataType.h55 inline cudaDataType ScalarTypeToCudaDataType(const c10::ScalarType& scalar_type) { in ScalarTypeToCudaDataType()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dtiled_dot_emitter.cc112 PrimitiveType scalar_type() const { in scalar_type() function
125 PrimitiveType scalar_type() const { return scalar_type_; } in scalar_type() function in xla::cpu::__anonfae897050111::GemvConfig
139 explicit GemvConfig(std::string name, PrimitiveType scalar_type, in GemvConfig()
226 explicit Config(PrimitiveType scalar_type, int64_t tile_rows, in Config()
454 explicit Config(PrimitiveType scalar_type, int64_t tile_rows, in Config()
665 explicit Config(PrimitiveType scalar_type, Dimensions dims, in Config()
684 PrimitiveType scalar_type() const { return scalar_type_; } in scalar_type() function in xla::cpu::__anonfae897050111::TiledSmallGemmEmitter::Config
762 PrimitiveType scalar_type() const { return config().scalar_type(); } in scalar_type() function in xla::cpu::__anonfae897050111::TiledSmallGemmEmitter
1002 void EmitRowMajorGemv(PrimitiveType scalar_type, int64_t tile_rows, in EmitRowMajorGemv()
1029 void EmitColumnMajorGemv(PrimitiveType scalar_type, int64_t tile_rows, in EmitColumnMajorGemv()
[all …]
/external/pytorch/c10/core/
DScalarTypeToTypeMeta.h16 inline caffe2::TypeMeta scalarTypeToTypeMeta(ScalarType scalar_type) { in scalarTypeToTypeMeta()
/external/pytorch/torch/csrc/jit/backends/coreml/objc/
DPTMCoreMLTensorSpec.h16 static inline c10::ScalarType scalar_type(const std::string& type_string) { in scalar_type() function
/external/executorch/runtime/core/exec_aten/util/test/
Dscalar_type_util_test.cpp182 #define CALL_TEST_ONE(cpp_type, scalar_type) \ in testAll() argument
217 #define INSTANTIATE_TYPE_TEST(cpp_type, scalar_type) \ in TEST() argument
/external/pytorch/torch/csrc/jit/tensorexpr/
Dgraph_opt.cpp110 auto scalar_type = in doesCatPromoteTypes() local
307 std::optional<at::ScalarType> scalar_type, in fixupTypeInfoForValue()
343 std::optional<at::ScalarType> scalar_type; in inferScalarType() local
397 std::optional<at::ScalarType> scalar_type = inferScalarType(n); in fixupMissingShapeInfo() local
/external/pytorch/aten/src/ATen/quantized/
DQuantizer.cpp43 ScalarType scalar_type) { in make_per_tensor_affine_quantizer()
52 ScalarType scalar_type) { in make_per_channel_affine_quantizer()
146 auto scalar_type = typeMetaToScalarType(dtype); in new_qtensor() local
450 QuantizerPtr make_unknown_quantizer(ScalarType scalar_type) { in make_unknown_quantizer()
/external/pytorch/torch/csrc/lazy/core/
Dshape.h26 c10::ScalarType scalar_type() const { in scalar_type() function
/external/pytorch/torch/csrc/autograd/
Dvariable_info.h15 at::ScalarType scalar_type = at::kFloat; member
/external/pytorch/torch/csrc/api/include/torch/detail/
DTensorDataContainer.h31 inline c10::ScalarType compute_desired_dtype(c10::ScalarType scalar_type) { in compute_desired_dtype()
240 const c10::ScalarType& scalar_type() const { in scalar_type() function
/external/executorch/exir/verification/
Dbindings.cpp58 const std::vector<int64_t>& strides) { in PYBIND11_MODULE()
/external/pytorch/torch/csrc/tensor/
Dpython_tensor.cpp42 int scalar_type; member
355 ScalarType scalar_type = declared_types[i].second; in initialize_aten_types() local
451 auto scalar_type = ((THPDtype*)obj)->scalar_type; in py_set_default_dtype() local

12345