Skip to content

Commit

Permalink
fixed resnet50 config and sleep issue (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghh04 authored Oct 6, 2023
1 parent 4e0995a commit fb7cb86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dlio_benchmark/configs/workload/resnet50.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dataset:
format: tfrecord

train:
computation_time: 0.01
computation_time: 0.098

reader:
data_loader: tensorflow
Expand Down
5 changes: 3 additions & 2 deletions dlio_benchmark/framework/tf_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import os
import logging
from time import time
from time import time, sleep

from dlio_benchmark.common.constants import MODULE_AI_FRAMEWORK
from dlio_benchmark.data_loader.data_loader_factory import DataLoaderFactory
Expand Down Expand Up @@ -112,7 +112,8 @@ def checkpoint(self, epoch, step_number):

@dlp.log
def compute(self, epoch_number, step, computation_time):
tf.function(self.model)(epoch_number, step, computation_time)
sleep(computation_time)
#tf.function(self.model)(epoch_number, step, computation_time)

@dlp.log
def get_loader(self, dataset_type=DatasetType.TRAIN):
Expand Down

0 comments on commit fb7cb86

Please sign in to comment.