Skip to content

Commit

Permalink
name style
Browse files Browse the repository at this point in the history
  • Loading branch information
axinging committed Oct 13, 2023
1 parent ae04784 commit a09217b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions onnxruntime/core/framework/debug_node_inputs_outputs_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@ void DumpTensorToStdOut(const Tensor& tensor, const std::string tensor_name, con
BigInt.prototype.toJSON = function () {
return this.toString(16);
};
function SaveObjectsToFile(jsonObjects) {
const prefix= jsonObjects['name'];
const object = jsonObjects;
const fileName = `${prefix}.json`;
function SaveObjectsToFile(json_object) {
const prefix= json_object['name'];
const object = json_object;
const file_name = `${prefix}.json`;
const a = document.createElement('a');
const file = new Blob([JSON.stringify(object)], {
type:
'application/json'
});
a.href = URL.createObjectURL(file);
a.download = fileName;
a.download = file_name;
a.click();
}
const buffer = $0;
Expand Down

0 comments on commit a09217b

Please sign in to comment.