keras/benchmarks/layer_benchmark
2023-06-08 19:16:24 -07:00
..
__init__.py Add benchmark for layers (#231) 2023-05-31 21:46:39 -07:00
activation_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
attention_benchmark.py Add more layer benchmarks (#245) 2023-06-05 11:05:12 -07:00
base_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
conv_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
core_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
merge_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
normalization_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
pooling_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
README.md Add torch benchmark to compare performance when using torch CTL (#287) 2023-06-07 18:38:56 -07:00
regularization_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
reshaping_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00
rnn_benchmark.py Merge branch 'main' of github.com:keras-team/keras-core 2023-06-08 19:16:24 -07:00

Benchmark the layer performance

This directory contains benchmarks to compare the performance of keras_core.layers.XXX and tf.keras.layers.XXX. We compare the performance of both the forward pass and train step (forward & backward pass).

To run the benchmark, use the command below and change the flags according to your target:

python3 -m benchmarks.layer_benchmark.conv_benchmark \
    --benchmark_name=benchmark_conv2D \
    --num_samples=2048 \
    --batch_size=256 \
    --jit_compile=True