IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
소스 검색

Add test_[one_hot_]input_layer_parameter_count_01().

master
Stanislaw Adaszewski 3 년 전
부모
커밋
1b72e41ea9
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. +13
    -0
      tests/icosagon/test_input.py

+ 13
- 0
tests/icosagon/test_input.py 파일 보기

@@ -107,3 +107,16 @@ def test_one_hot_input_layer_04():
layer = OneHotInputLayer(d)
s = repr(layer)
assert s.startswith('Icosagon one-hot input layer')
def test_one_hot_input_layer_parameter_count_01():
d = _some_data()
layer = OneHotInputLayer(d)
assert len(list(layer.parameters())) == 2
def test_input_layer_parameter_count_01():
d = _some_data()
for output_dim in [32, 64, 128]:
layer = InputLayer(d, output_dim)
assert len(list(layer.parameters())) == 2

불러오는 중...
취소
저장