MCPcopy
hub / github.com/cs230-stanford/cs230-code-examples / save

Method save

tensorflow/vision/model/utils.py:21–24  ·  view source on GitHub ↗

Saves parameters to json file

(self, json_path)

Source from the content-addressed store, hash-verified

19 self.update(json_path)
20
21 def save(self, json_path):
22 """Saves parameters to json file"""
23 with open(json_path, 'w') as f:
24 json.dump(self.__dict__, f, indent=4)
25
26 def update(self, json_path):
27 """Loads parameters from json file"""

Callers 3

resize_and_saveFunction · 0.45
launch_training_jobFunction · 0.45
train_and_evaluateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected