dev-python/cut-cross-entropy - 25.1.1 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/cut-cross-entropy-25.1.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/cut-cross-entropy-25.1.1

Or alternatively:

emerge --autounmask-write -a =dev-python/cut-cross-entropy-25.1.1

Package Information

Description:
Memory-efficient cross entropy loss for PyTorch
Homepage:
https://github.com/apple/ml-cross-entropy https://pypi.org/project/cut-cross-entropy/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
25.1.1 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{12..14} )
PYPI_PN="cut_cross_entropy"
PYPI_NO_NORMALIZE=1

inherit distutils-r1 pypi

DESCRIPTION="Memory-efficient cross entropy loss for PyTorch"
HOMEPAGE="
	https://github.com/apple/ml-cross-entropy
	https://pypi.org/project/cut-cross-entropy/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# The suite exercises Triton kernels and requires supported accelerator hardware.
RESTRICT="test"

RDEPEND="
	sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
	$(python_gen_cond_dep '
		virtual/triton[${PYTHON_USEDEP}]
	')
"
BDEPEND="${RDEPEND}"

Inherited Eclasses

Dependencies

RDEPEND

	sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
	$(python_gen_cond_dep '
		virtual/triton[${PYTHON_USEDEP}]
	')

BDEPEND

	sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
	$(python_gen_cond_dep '
		virtual/triton[${PYTHON_USEDEP}]
	')