Home
last modified time | relevance | path

Searched refs:type_caster (Results 1 – 25 of 25) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/python/
Dabsl_casters.h32 struct type_caster<absl::Span<const T>> {
66 struct type_caster<absl::optional<T>> : optional_caster<absl::optional<T>> {};
69 struct type_caster<absl::nullopt_t> : public void_caster<absl::nullopt_t> {};
74 struct type_caster<absl::variant<Ts...>>
87 struct type_caster<absl::string_view> : string_caster<absl::string_view, true> {
Dtypes.h115 struct type_caster<xla::Status> {
129 struct type_caster<xla::StatusOr<T>> {
153 struct type_caster<xla::BorrowingLiteral> {
195 struct type_caster<xla::LiteralSlice> {
200 type_caster<xla::BorrowingLiteral> literal_caster;
218 struct type_caster<xla::ConvolutionDimensionNumbers> {
258 struct type_caster<xla::DotDimensionNumbers> {
290 struct type_caster<xla::GatherDimensionNumbers> {
318 struct type_caster<xla::ScatterDimensionNumbers> {
348 struct type_caster<xla::ReplicaGroup> {
[all …]
Dtypes.cc232 pybind11::detail::type_caster<BorrowingLiteral> caster; in GetPythonBufferTree()
/external/python/pybind11/include/pybind11/
Dstl.h186 template <typename Type, typename Alloc> struct type_caster<std::vector<Type, Alloc>>
189 template <typename Type, typename Alloc> struct type_caster<std::deque<Type, Alloc>>
192 template <typename Type, typename Alloc> struct type_caster<std::list<Type, Alloc>>
243 template <typename Type, size_t Size> struct type_caster<std::array<Type, Size>>
246 template <typename Type> struct type_caster<std::valarray<Type>>
249 template <typename Key, typename Compare, typename Alloc> struct type_caster<std::set<Key, Compare,…
252 template <typename Key, typename Hash, typename Equal, typename Alloc> struct type_caster<std::unor…
255 template <typename Key, typename Value, typename Compare, typename Alloc> struct type_caster<std::m…
258 … typename Value, typename Hash, typename Equal, typename Alloc> struct type_caster<std::unordered_…
293 template<typename T> struct type_caster<std::optional<T>>
[all …]
Dcast.h946 template <typename type, typename SFINAE = void> class type_caster : public type_caster_base<type> …
947 template <typename type> using make_caster = type_caster<intrinsic_t<type>>;
959 template <typename type> class type_caster<std::reference_wrapper<type>> {
1016 struct type_caster<T, enable_if_t<std::is_arithmetic<T>::value && !is_std_char_type<T>::value>> {
1137 template <> class type_caster<void_type> : public void_caster<void_type> {};
1139 template <> class type_caster<void> : public type_caster<void_type> {
1141 using type_caster<void_type>::cast;
1182 template <> class type_caster<std::nullptr_t> : public void_caster<std::nullptr_t> { };
1184 template <> class type_caster<bool> {
1331 struct type_caster<std::basic_string<CharT, Traits, Allocator>, enable_if_t<is_std_char_type<CharT>…
[all …]
Dchrono.h99 template <typename Duration> class type_caster<std::chrono::time_point<std::chrono::system_clock, D…
182 template <typename Clock, typename Duration> class type_caster<std::chrono::time_point<Clock, Durat…
186 template <typename Rep, typename Period> class type_caster<std::chrono::duration<Rep, Period>>
Deigen.h252 struct type_caster<Type, enable_if_t<is_eigen_dense_plain<Type>::value>> {
396 template <typename Type> struct type_caster<Type, enable_if_t<is_eigen_dense_map<Type>::value>>
402 struct type_caster<
519 struct type_caster<Type, enable_if_t<is_eigen_other<Type>::value>> {
541 struct type_caster<Type, enable_if_t<is_eigen_sparse<Type>::value>> {
Dcomplex.h42 template <typename T> class type_caster<std::complex<T>> {
Dfunctional.h19 struct type_caster<std::function<Return(Args...)>> {
Dnumpy.h454 struct type_caster<unchecked_reference<T, Dim>> {
458 struct type_caster<unchecked_mutable_reference<T, Dim>> : type_caster<unchecked_reference<T, Dim>> …
/external/python/pybind11/tests/
Dtest_custom_type_casters.cpp19 template <> struct type_caster<ArgInspector1> { struct
34 template <> struct type_caster<ArgInspector2> { struct
49 template <> struct type_caster<ArgAlwaysConverts> { struct
75 template <> struct type_caster<DestructionTester> { struct
Dtest_copy_move.cpp73 template <> struct type_caster<MoveOnlyInt> { struct
79 template <> struct type_caster<MoveOrCopyInt> { argument
85 template <> struct type_caster<CopyOnlyInt> { struct
Dpybind11_tests.h65 template<> class type_caster<RValueCaster> { in PYBIND11_NAMESPACE_BEGIN()
Dtest_stl.cpp27 struct type_caster<boost::variant<Ts...>> : variant_caster<boost::variant<Ts...>> {}; struct
Dtest_builtin_casters.cpp25 class type_caster<ConstRefCasted> { class
/external/python/pybind11/docs/advanced/cast/
Dcustom.rst33 instantiation of the ``pybind11::detail::type_caster<T>`` template.
40 template <> struct type_caster<inty> {
83 A ``type_caster<T>`` defined with ``PYBIND11_TYPE_CASTER(T, ...)`` requires
Dstl.rst39 pybind11 provides an easy way to specialize the ``type_caster`` for such
47 struct type_caster<boost::optional<T>> : optional_caster<boost::optional<T>> {};
59 struct type_caster<boost::variant<Ts...>> : variant_caster<boost::variant<Ts...>> {};
171 it adds a template instantiation of ``type_caster``. If your binding code consists of
/external/tensorflow/tensorflow/python/util/
Dpy_checkpoint_reader_wrapper.cc55 struct type_caster<tensorflow::TensorShape> { struct
80 struct type_caster<tensorflow::DataType> { struct
/external/tensorflow/tensorflow/python/lib/core/
Dpybind11_absl.h33 struct type_caster<tensorflow::StringPiece>
Dpybind11_status.h130 struct type_caster<tensorflow::Status> {
/external/llvm-project/mlir/lib/Bindings/Python/
DPybindUtils.h99 struct type_caster<llvm::Optional<T>> : optional_caster<llvm::Optional<T>> {};
DIRModules.h679 struct type_caster<mlir::python::DefaultingPyMlirContext>
682 struct type_caster<mlir::python::DefaultingPyLocation>
/external/python/pybind11/include/pybind11/detail/
Dinit.h18 class type_caster<value_and_holder> { in PYBIND11_NAMESPACE_BEGIN()
/external/tensorflow/tensorflow/python/client/
Dtf_session_wrapper.cc45 struct type_caster<absl::optional<T>> struct
48 struct type_caster<absl::nullopt_t> : public void_caster<absl::nullopt_t> {}; struct
/external/python/pybind11/docs/
Dchangelog.rst28 * The ``type_caster`` for integers does not convert Python objects with
1209 * Fix pointer to reference error in type_caster on MSVC