Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ Python packages imported by Bazel targets are resolved from
`tensorboard/pip_package/requirements_bazel_lock.txt`. After changing either
pip requirements file or the TensorFlow compatibility baseline, regenerate the
lock on Linux with Python 3.10 and review the resulting version changes. Bazel
tests use the stable TensorFlow version in `requirements_bazel.in`; the
pip-package smoke test separately exercises the CI-selected version, currently
`tf-nightly`.
tests use the TensorFlow compatibility baseline in `requirements_bazel.in`;
the pip-package smoke test separately exercises the CI-selected version,
currently `tf-nightly`.

```sh
(tf)$ python -m pip install "uv==0.5.31"
(tf)$ cd tensorboard/pip_package
(tf)$ uv pip compile --python-version 3.10 --generate-hashes \
--output-file tensorboard/pip_package/requirements_bazel_lock.txt \
tensorboard/pip_package/requirements_bazel.in
--output-file requirements_bazel_lock.txt \
requirements_bazel.in
(tf)$ cd ../..
```

The Flogger artifacts used by TensorBoard's customized Soy repository are
Expand Down
36 changes: 20 additions & 16 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tensorboard/compat/proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Copy the proto files from TensorFlow to TensorBoard using the following process:
* git add .
* git commit -m "Update TensorFlow protos to xxxx"

These were taken from TensorFlow version 1.12.0-dev20181012
These match the protos in TensorFlow version 2.22.0.
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/allocation_description.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/api_def.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

// Defines the text format for including per-op API definition and
// overrides for client language op code generators.

Expand Down
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/attr_value.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down
55 changes: 55 additions & 0 deletions tensorboard/compat/proto/config.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down Expand Up @@ -819,6 +834,10 @@ message RunOptions {
TraceLevel trace_level = 1;

// Time to wait for operation to complete in milliseconds.
//
// Example usage in Python:
// run_options = tf.compat.v1.RunOptions(timeout_in_ms=5000)
// output = session.run(fetches, options=run_options)
int64 timeout_in_ms = 2;

// The thread pool to use, if session_inter_op_thread_pool is configured.
Expand All @@ -841,6 +860,11 @@ message RunOptions {
// out of memory (OOM).
//
// Enabling this option can slow down the Run() call.
//
// Example usage in Python:
// run_options = tf.compat.v1.RunOptions(
// report_tensor_allocations_upon_oom=True)
// output = session.run(fetches, options=run_options)
bool report_tensor_allocations_upon_oom = 7;

// Everything inside Experimental is subject to change and is not subject
Expand Down Expand Up @@ -1031,4 +1055,35 @@ message BatchingOptions {
// Maximum number of batches enqueued for processing before requests are
// failed fast.
int32 max_enqueued_batches = 5;

// If set, enables large batch splitting which reduces padding inefficiency.
bool enable_large_batch_splitting = 6;

// Policy for mixed priority batching. Must be one of the policies supported
// by the batch scheduler in
// tensorflow/core/kernels/batching_util/batch_scheduler.h.
string mixed_priority_batching_policy = 7;

/**experimental options to override legacy priority batching parameters**/
// TODO(b/488097129): Remove these options after the experiment is done.
// The maximum allowed batch size for low priority requests.
int32 low_priority_max_batch_size = 8;

// Maximum number of microseconds to wait before outputting an incomplete
// batch for low priority requests.
int32 low_priority_batch_timeout_micros = 9;

// Optional list of allowed batch sizes for low priority requests.
repeated int32 low_priority_allowed_batch_sizes = 10;

// Maximum number of batches enqueued for processing before low priority
// requests are failed fast.
int32 low_priority_max_enqueued_batches = 11;
/**experimental options end**/

// The number of threads for processing warmup requests. Useful to process
// warmup requests without starving the regular batch threads when global
// scheduler is enabled.
// TODO(b/516818455): Remove warmup threads after in-lining warmup requests.
int32 num_warmup_batch_threads = 12;
}
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/coordination_config.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The OpenXLA Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/cost_graph.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/cpp_shape_inference.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down
15 changes: 15 additions & 0 deletions tensorboard/compat/proto/debug.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright 2026 The TensorFlow Authors. All Rights Reserved.
//
// 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.
// ==============================================================================

syntax = "proto3";

package tensorboard;
Expand Down
Loading