-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Tensorflow version to v2.13.0 #2201
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
grpcio>=1.41.1 | ||
googleapis-common-protos==1.6.0 | ||
cython>=0.29.24 | ||
tensorflow==2.11.0 | ||
tensorflow==2.13.0 | ||
protobuf<=3.20.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This requirement is for the reason the same as #2140 (comment). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
scipy>=1.7.2 | ||
tensorflow==2.11.0 | ||
tensorflow==2.13.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
tensorflow==2.11.0 | ||
tensorflow==2.13.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,11 @@ | |
# https://github.com/kubeflow/katib/blob/master/examples/v1beta1/kubeflow-training-operator/tfjob-mnist-with-summaries.yaml#L16-L22 | ||
|
||
import tensorflow as tf | ||
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator | ||
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator, TensorEvent | ||
from tensorboard.backend.event_processing.tag_types import TENSORS | ||
import os | ||
from datetime import datetime | ||
import rfc3339 | ||
from datetime import datetime | ||
import api_pb2 | ||
from logging import getLogger, StreamHandler, INFO | ||
from pkg.metricscollector.v1beta1.common import const | ||
|
@@ -43,22 +44,22 @@ def find_all_files(directory): | |
|
||
def parse_summary(self, tfefile): | ||
metric_logs = [] | ||
event_accumulator = EventAccumulator(tfefile, size_guidance={'tensors': 0}) | ||
event_accumulator = EventAccumulator(tfefile, size_guidance={TENSORS: 0}) | ||
event_accumulator.Reload() | ||
for tag in event_accumulator.Tags()['tensors']: | ||
for tag in event_accumulator.Tags()[TENSORS]: | ||
for m in self.metric_names: | ||
|
||
tfefile_parent_dir = os.path.dirname(m) if len(m.split("/")) >= 2 else os.path.dirname(tfefile) | ||
basedir_name = os.path.dirname(tfefile) | ||
if not tag.startswith(m.split("/")[-1]) or not basedir_name.endswith(tfefile_parent_dir): | ||
continue | ||
|
||
for wall_time, step, tensor in event_accumulator.Tensors(tag): | ||
for tensor in event_accumulator.Tensors(tag): | ||
ml = api_pb2.MetricLog( | ||
time_stamp=rfc3339.rfc3339(datetime.fromtimestamp(wall_time)), | ||
time_stamp=rfc3339.rfc3339(datetime.fromtimestamp(tensor.wall_time)), | ||
metric=api_pb2.Metric( | ||
name=m, | ||
value=str(tf.make_ndarray(tensor)) | ||
value=str(tf.make_ndarray(tensor.tensor_proto)) | ||
Comment on lines
+57
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since Tensorboard v2.12.0, the 'TensorEvent' typed was changed from the namedtuple to the dataclass. |
||
) | ||
) | ||
metric_logs.append(ml) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This requirement is for the reason the same as #2140 (comment).