-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
============================== Release Notes: v0.97 ============================== Support for new layers: - Mean absolute error and L1 norm - GPU implementation for activation layers - Log sigmoid and softsign - Channel-wise mean (temporary kludge) Model portability & usability: - Hints for layer output dimensions - Confusion matrix callback - Metric checking callback Internal features: - Removed target-layer-based features from model zoo - Layer unit tests check for expected output values Retired features: - Smooth ReLU, bent identity, and swish layers - Target-layer-based metrics - Target-layer-based models (sequential, greedy layer-wise autoencoder, Siamese)
- Loading branch information
Showing
288 changed files
with
7,509 additions
and
7,772 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import sys | ||
sys.path.insert(0, '../common_python') | ||
import tools | ||
import pytest | ||
import os | ||
|
||
def skeleton_layer_elu(cluster, executables, dir_name, compiler_name): | ||
if compiler_name not in executables: | ||
pytest.skip('default_exes[%s] does not exist' % compiler_name) | ||
output_file_name = '%s/bamboo/unit_tests/output/layer_elu_%s_output.txt' % (dir_name, compiler_name) | ||
error_file_name = '%s/bamboo/unit_tests/error/layer_elu_%s_error.txt' % (dir_name, compiler_name) | ||
command = tools.get_command( | ||
cluster=cluster, executable=executables[compiler_name], num_nodes=1, num_processes=2, dir_name=dir_name, | ||
data_filedir_default='', data_reader_name='synthetic', | ||
model_folder='tests/layer_tests', model_name='elu', optimizer_name='sgd', | ||
output_file_name=output_file_name, error_file_name=error_file_name) | ||
return_code = os.system(command) | ||
assert return_code == 0 | ||
|
||
def test_unit_layer_elu_clang4(cluster, exes, dirname): | ||
skeleton_layer_elu(cluster, exes, dirname, 'clang4') | ||
|
||
def test_unit_layer_elu_gcc4_check(cluster, exes, dirname): | ||
if cluster in ['surface']: | ||
pytest.skip('FIXME') | ||
# Surface Errors: | ||
# assert 34304 == 0 | ||
skeleton_layer_elu(cluster, exes, dirname, 'gcc4') | ||
|
||
def test_unit_layer_elu_gcc7(cluster, exes, dirname): | ||
skeleton_layer_elu(cluster, exes, dirname, 'gcc7') | ||
|
||
def test_unit_layer_elu_intel18(cluster, exes, dirname): | ||
skeleton_layer_elu(cluster, exes, dirname, 'intel18') | ||
|
||
# Run with python -m pytest -s test_unit_layer_elu.py -k 'test_unit_layer_elu_exe' --exe=<executable> | ||
def test_unit_layer_elu_exe(cluster, dirname, exe): | ||
if exe == None: | ||
pytest.skip('Non-local testing') | ||
exes = {'exe' : exe} | ||
skeleton_layer_elu(cluster, exes, dirname, 'exe') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import sys | ||
sys.path.insert(0, '../common_python') | ||
import tools | ||
import pytest | ||
import os | ||
|
||
def skeleton_layer_identity(cluster, executables, dir_name, compiler_name): | ||
if compiler_name not in executables: | ||
pytest.skip('default_exes[%s] does not exist' % compiler_name) | ||
output_file_name = '%s/bamboo/unit_tests/output/layer_identity_%s_output.txt' % (dir_name, compiler_name) | ||
error_file_name = '%s/bamboo/unit_tests/error/layer_identity_%s_error.txt' % (dir_name, compiler_name) | ||
command = tools.get_command( | ||
cluster=cluster, executable=executables[compiler_name], num_nodes=1, num_processes=2, dir_name=dir_name, | ||
data_filedir_default='', data_reader_name='synthetic', | ||
model_folder='tests/layer_tests', model_name='identity', optimizer_name='sgd', | ||
output_file_name=output_file_name, error_file_name=error_file_name) | ||
return_code = os.system(command) | ||
assert return_code == 0 | ||
|
||
def test_unit_layer_identity_clang4(cluster, exes, dirname): | ||
skeleton_layer_identity(cluster, exes, dirname, 'clang4') | ||
|
||
def test_unit_layer_identity_gcc4_check(cluster, exes, dirname): | ||
if cluster in ['surface']: | ||
pytest.skip('FIXME') | ||
# Surface Errors: | ||
# assert 34304 == 0 | ||
skeleton_layer_identity(cluster, exes, dirname, 'gcc4') | ||
|
||
def test_unit_layer_identity_gcc7(cluster, exes, dirname): | ||
skeleton_layer_identity(cluster, exes, dirname, 'gcc7') | ||
|
||
def test_unit_layer_identity_intel18(cluster, exes, dirname): | ||
skeleton_layer_identity(cluster, exes, dirname, 'intel18') | ||
|
||
# Run with python -m pytest -s test_unit_layer_identity.py -k 'test_unit_layer_identity_exe' --exe=<executable> | ||
def test_unit_layer_identity_exe(cluster, dirname, exe): | ||
if exe == None: | ||
pytest.skip('Non-local testing') | ||
exes = {'exe' : exe} | ||
skeleton_layer_identity(cluster, exes, dirname, 'exe') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import sys | ||
sys.path.insert(0, '../common_python') | ||
import tools | ||
import pytest | ||
import os | ||
|
||
def skeleton_layer_l1_norm(cluster, executables, dir_name, compiler_name): | ||
if compiler_name not in executables: | ||
pytest.skip('default_exes[%s] does not exist' % compiler_name) | ||
output_file_name = '%s/bamboo/unit_tests/output/layer_l1_norm_%s_output.txt' % (dir_name, compiler_name) | ||
error_file_name = '%s/bamboo/unit_tests/error/layer_l1_norm_%s_error.txt' % (dir_name, compiler_name) | ||
command = tools.get_command( | ||
cluster=cluster, executable=executables[compiler_name], num_nodes=1, num_processes=2, dir_name=dir_name, | ||
data_filedir_default='', data_reader_name='synthetic', | ||
model_folder='tests/layer_tests', model_name='l1_norm', optimizer_name='sgd', | ||
output_file_name=output_file_name, error_file_name=error_file_name) | ||
return_code = os.system(command) | ||
assert return_code == 0 | ||
|
||
def test_unit_layer_l1_norm_clang4(cluster, exes, dirname): | ||
skeleton_layer_l1_norm(cluster, exes, dirname, 'clang4') | ||
|
||
def test_unit_layer_l1_norm_gcc4_check(cluster, exes, dirname): | ||
if cluster in ['surface']: | ||
pytest.skip('FIXME') | ||
# Surface Errors: | ||
# assert 34304 == 0 | ||
skeleton_layer_l1_norm(cluster, exes, dirname, 'gcc4') | ||
|
||
def test_unit_layer_l1_norm_gcc7(cluster, exes, dirname): | ||
skeleton_layer_l1_norm(cluster, exes, dirname, 'gcc7') | ||
|
||
def test_unit_layer_l1_norm_intel18(cluster, exes, dirname): | ||
skeleton_layer_l1_norm(cluster, exes, dirname, 'intel18') | ||
|
||
# Run with python -m pytest -s test_unit_ridge_regression.py -k 'test_unit_layer_l1_norm_exe' --exe=<executable> | ||
def test_unit_layer_l1_norm_exe(cluster, dirname, exe): | ||
if exe == None: | ||
pytest.skip('Non-local testing') | ||
exes = {'exe' : exe} | ||
skeleton_layer_l1_norm(cluster, exes, dirname, 'exe') |
Oops, something went wrong.