reference_softmax.hpp Source File#
reference_softmax.hpp
Go to the documentation of this file.
__host__ __device__ constexpr auto rank(const Layout< Shape, UnrolledDescriptorType > &layout)
Get layout rank (num elements in shape).
Definition layout_utils.hpp:310
Definition tile/core/algorithm/cluster_descriptor.hpp:13
CK_TILE_HOST auto make_ParallelTensorFunctor(F f, Xs... xs)
Definition tile/host/host_tensor.hpp:329
CK_TILE_HOST void reference_softmax(const HostTensor< InputType > &x, HostTensor< OutputType > &y, index_t dim=-1)
Definition reference_softmax.hpp:14
CK_TILE_HOST_DEVICE constexpr Y type_convert(X x)
Definition tile/core/numeric/type_convert.hpp:29
Definition tile/host/host_tensor.hpp:336
decltype(auto) get_lengths() const
Definition tile/host/host_tensor.hpp:390
decltype(auto) get_strides() const
Definition tile/host/host_tensor.hpp:394
std::size_t get_num_of_dimension() const
Definition tile/host/host_tensor.hpp:396
std::size_t get_length(std::size_t dim) const
Definition tile/host/host_tensor.hpp:388
std::size_t get_element_size() const
Definition tile/host/host_tensor.hpp:398
static CK_TILE_HOST_DEVICE constexpr T infinity()
Definition tile/core/numeric/numeric.hpp:38