Nathan Lambert commited on
Commit
a175e66
1 Parent(s): a80d802

try torch load

Browse files
Files changed (1) hide show
  1. geodiff-example-data.py +4 -4
geodiff-example-data.py CHANGED
@@ -17,9 +17,9 @@
17
  import csv
18
  import json
19
  import os
20
- # import torch
21
  import datasets
22
- import pickle
23
 
24
  # You can copy an official description
25
  _DESCRIPTION = """\
@@ -118,6 +118,6 @@ class GeoDiffExampleData(datasets.GeneratorBasedBuilder):
118
  def _generate_examples(self, filepath, split):
119
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
120
  with open(filepath, "rb") as f:
121
- # data = torch.load(f)
122
- data = pickle.load(f)
123
  yield data
 
17
  import csv
18
  import json
19
  import os
20
+ import torch
21
  import datasets
22
+ # import pickle
23
 
24
  # You can copy an official description
25
  _DESCRIPTION = """\
 
118
  def _generate_examples(self, filepath, split):
119
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
120
  with open(filepath, "rb") as f:
121
+ data = torch.load(f)
122
+ # data = pickle.load(f)
123
  yield data