Farama-Foundation/Gymnasium

[Proposal] Allow to specify dtype for Discrete

Open

#1,118 创建于 2024年7月13日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Python (567 fork)batch import
enhancementgood first issue

仓库指标

Star
 (4,712 star)
PR 合并指标
 (平均合并 1天 9小时) (30 天内合并 10 个 PR)

描述

Proposal

Add dtype argument to spaces.Discrete (similar to MultiDiscrete and Box).

Motivation

Currently the dtype is fixed to numpy.int64. However, often Discrete spaces are much smaller, resulting in a waste of memory.

Pitch

No response

Alternatives

No response

Additional context

No response

Checklist

  • I have checked that there is no similar issue in the repo

贡献者指南