Updated tools/ to use tstring.
This is a part of a larger migration effort for tensorflow::tstring. See: https://github.com/tensorflow/community/pull/91 PiperOrigin-RevId: 265449545
This commit is contained in:
parent
b7c4c17326
commit
87e90e5eb7
@ -107,7 +107,7 @@ class SparsifyGatherTest : public ::testing::Test {
|
||||
CreateNode("save/Const", "Const", {}, &graph_def);
|
||||
|
||||
Tensor tensor_names_values(DT_STRING, TensorShape({1}));
|
||||
test::FillValues<string>(&tensor_names_values, {"w"});
|
||||
test::FillValues<tstring>(&tensor_names_values, {"w"});
|
||||
NodeDef* tensor_names_node =
|
||||
CreateNode("save/RestoreV2/tensor_names", "Const", {}, &graph_def);
|
||||
SetNodeTensorAttr<string>("value", tensor_names_values,
|
||||
@ -320,7 +320,7 @@ class SparsifyGatherTest : public ::testing::Test {
|
||||
NodeDef* tensor_names_node =
|
||||
CreateNode("save/RestoreV2/tensor_names", "Const", {}, &graph_def);
|
||||
Tensor tensor_names_values(DT_STRING, TensorShape({2}));
|
||||
test::FillValues<string>(&tensor_names_values, {"w1", "w2"});
|
||||
test::FillValues<tstring>(&tensor_names_values, {"w1", "w2"});
|
||||
SetNodeTensorAttr<string>("value", tensor_names_values,
|
||||
tensor_names_node);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user