mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Summary: Originally, the tests for tensorboard writer are smoke tests only. This PR lets CI compare the output with expected results at low level. The randomness of the tensors in the test are also removed. ps. I found that how protobuf serializes data differs between different python environment. One method to solve this is to write the data and then read it back instantly. (compare the data at a higher level) For `add_custom_scalars`, the data to be written is a dictionary. and the serialized result might be different (not `ordereddict`). So only smoke test for that. Pull Request resolved: https://github.com/pytorch/pytorch/pull/20987 Reviewed By: NarineK, lanpa Differential Revision: D15804871 Pulled By: orionr fbshipit-source-id: 69324c11ff823b19960d50def73adff36eb4a2ac
51 lines
891 B
Plaintext
51 lines
891 B
Plaintext
value {
|
|
tag: "prcurve with raw data"
|
|
tensor {
|
|
dtype: DT_FLOAT
|
|
tensor_shape {
|
|
dim {
|
|
size: 6
|
|
}
|
|
dim {
|
|
size: 5
|
|
}
|
|
}
|
|
float_val: 75.0
|
|
float_val: 64.0
|
|
float_val: 21.0
|
|
float_val: 5.0
|
|
float_val: 0.0
|
|
float_val: 150.0
|
|
float_val: 105.0
|
|
float_val: 18.0
|
|
float_val: 0.0
|
|
float_val: 0.0
|
|
float_val: 0.0
|
|
float_val: 45.0
|
|
float_val: 132.0
|
|
float_val: 150.0
|
|
float_val: 150.0
|
|
float_val: 0.0
|
|
float_val: 11.0
|
|
float_val: 54.0
|
|
float_val: 70.0
|
|
float_val: 75.0
|
|
float_val: 0.3333333
|
|
float_val: 0.3786982
|
|
float_val: 0.5384616
|
|
float_val: 1.0
|
|
float_val: 0.0
|
|
float_val: 1.0
|
|
float_val: 0.8533334
|
|
float_val: 0.28
|
|
float_val: 0.0666667
|
|
float_val: 0.0
|
|
}
|
|
metadata {
|
|
plugin_data {
|
|
plugin_name: "pr_curves"
|
|
content: "\020\001"
|
|
}
|
|
}
|
|
}
|