Farama-Foundation/Gymnasium

[Proposal] Allow to specify dtype for Discrete

已關閉

#1,118 建立於 2024年7月13日

 (4 則留言) (0 個反應) (0 位負責人)Python (567 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (4,712 顆星)
PR 合併指標
 (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

貢獻者指南