Skip to content

Commit

Permalink
Update record_writer.py (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekorman authored and lanpa committed Nov 4, 2019
1 parent 656037e commit ccccddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorboardX/record_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The code was borrowed from https://github.com/TeamHG-Memex/tensorboard_logger
"""

import os
import copy
import io
import os.path
Expand Down Expand Up @@ -79,7 +80,7 @@ def write(self, val):
self.buffer.write(val)

def flush(self):
s3 = boto3.client('s3')
s3 = boto3.client('s3', endpoint_url=os.environ.get('S3_ENDPOINT'))
bucket, path = self.bucket_and_path()
upload_buffer = copy.copy(self.buffer)
upload_buffer.seek(0)
Expand Down

0 comments on commit ccccddf

Please sign in to comment.