abseil / abseil/abseil-py

How can we define a list of integers?

Đang mở
#131 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
2.5k
Fork
279
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Mô tả

In many cases, we need pass a list integers to a program, such as a list containing the number of units per layer in a neural network.

For now, with `DEFINE_list`, we have to manually change the type of each element from string to int. And `DEFINE_multi_integer` may lead to a very long command line string since the argument name needs to appear multiple times.

Is it possible or easy to declare a default type of each element for `DEFINE_list`, like `argparse`?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.