From 9972c7249d9921ade0b84390ca4e975846acf620 Mon Sep 17 00:00:00 2001 From: Joan Puigcerver Date: Mon, 6 Feb 2023 20:33:13 -0800 Subject: [PATCH] Internal. PiperOrigin-RevId: 507662396 --- vmoe/constants.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vmoe/constants.py diff --git a/vmoe/constants.py b/vmoe/constants.py new file mode 100644 index 0000000..f04fbae --- /dev/null +++ b/vmoe/constants.py @@ -0,0 +1,23 @@ +# Copyright 2022 Google LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Constants used in several parts of the codebase.""" + + +class FlaxCollection: + """Flax collections with a special meaning.""" + PARAMS: str = "params" + INTERMEDIATES: str = "intermediates" + PROBES: str = "probes" + AUX_LOSS: str = "aux_loss"