Qualify uses of std::string
PiperOrigin-RevId: 327037703 Change-Id: I0f8d80e9a64b3b84f50f9c8b73ec562e29ef4607
This commit is contained in:
parent
48ee9cdb66
commit
cb9854b5f6
@ -131,9 +131,9 @@ class Session {
|
|||||||
/// `target_node_names` must be non-empty.
|
/// `target_node_names` must be non-empty.
|
||||||
///
|
///
|
||||||
/// REQUIRES: outputs is not nullptr if `output_tensor_names` is non-empty.
|
/// REQUIRES: outputs is not nullptr if `output_tensor_names` is non-empty.
|
||||||
virtual Status Run(const std::vector<std::pair<string, Tensor> >& inputs,
|
virtual Status Run(const std::vector<std::pair<std::string, Tensor> >& inputs,
|
||||||
const std::vector<string>& output_tensor_names,
|
const std::vector<std::string>& output_tensor_names,
|
||||||
const std::vector<string>& target_node_names,
|
const std::vector<std::string>& target_node_names,
|
||||||
std::vector<Tensor>* outputs) = 0;
|
std::vector<Tensor>* outputs) = 0;
|
||||||
|
|
||||||
/// \brief Implementations which support `RunOptions`.
|
/// \brief Implementations which support `RunOptions`.
|
||||||
@ -169,18 +169,18 @@ class Session {
|
|||||||
/// discarded.
|
/// discarded.
|
||||||
/// NOTE: This API is still experimental and may change.
|
/// NOTE: This API is still experimental and may change.
|
||||||
virtual Status Run(const RunOptions& run_options,
|
virtual Status Run(const RunOptions& run_options,
|
||||||
const std::vector<std::pair<string, Tensor> >& inputs,
|
const std::vector<std::pair<std::string, Tensor> >& inputs,
|
||||||
const std::vector<string>& output_tensor_names,
|
const std::vector<std::string>& output_tensor_names,
|
||||||
const std::vector<string>& target_node_names,
|
const std::vector<std::string>& target_node_names,
|
||||||
std::vector<Tensor>* outputs, RunMetadata* run_metadata);
|
std::vector<Tensor>* outputs, RunMetadata* run_metadata);
|
||||||
|
|
||||||
/// \brief Like `Run` with `RunOptions` proto, but allows user to provide
|
/// \brief Like `Run` with `RunOptions` proto, but allows user to provide
|
||||||
/// custom threadpool implementation via ThreadPoolOptions.
|
/// custom threadpool implementation via ThreadPoolOptions.
|
||||||
/// NOTE: This API is still experimental and may change.
|
/// NOTE: This API is still experimental and may change.
|
||||||
virtual Status Run(const RunOptions& run_options,
|
virtual Status Run(const RunOptions& run_options,
|
||||||
const std::vector<std::pair<string, Tensor> >& inputs,
|
const std::vector<std::pair<std::string, Tensor> >& inputs,
|
||||||
const std::vector<string>& output_tensor_names,
|
const std::vector<std::string>& output_tensor_names,
|
||||||
const std::vector<string>& target_node_names,
|
const std::vector<std::string>& target_node_names,
|
||||||
std::vector<Tensor>* outputs, RunMetadata* run_metadata,
|
std::vector<Tensor>* outputs, RunMetadata* run_metadata,
|
||||||
const thread::ThreadPoolOptions& threadpool_options) {
|
const thread::ThreadPoolOptions& threadpool_options) {
|
||||||
return errors::Unimplemented(
|
return errors::Unimplemented(
|
||||||
@ -192,18 +192,19 @@ class Session {
|
|||||||
/// `handle` that can be used to perform a sequence of partial feeds and
|
/// `handle` that can be used to perform a sequence of partial feeds and
|
||||||
/// fetches.
|
/// fetches.
|
||||||
/// NOTE: This API is still experimental and may change.
|
/// NOTE: This API is still experimental and may change.
|
||||||
virtual Status PRunSetup(const std::vector<string>& input_names,
|
virtual Status PRunSetup(const std::vector<std::string>& input_names,
|
||||||
const std::vector<string>& output_names,
|
const std::vector<std::string>& output_names,
|
||||||
const std::vector<string>& target_nodes,
|
const std::vector<std::string>& target_nodes,
|
||||||
string* handle);
|
std::string* handle);
|
||||||
|
|
||||||
/// \brief Continues the pending execution specified by `handle` with the
|
/// \brief Continues the pending execution specified by `handle` with the
|
||||||
/// provided input tensors and fills `outputs` for the endpoints specified
|
/// provided input tensors and fills `outputs` for the endpoints specified
|
||||||
/// in `output_names`.
|
/// in `output_names`.
|
||||||
/// NOTE: This API is still experimental and may change.
|
/// NOTE: This API is still experimental and may change.
|
||||||
virtual Status PRun(const string& handle,
|
virtual Status PRun(
|
||||||
const std::vector<std::pair<string, Tensor> >& inputs,
|
const std::string& handle,
|
||||||
const std::vector<string>& output_names,
|
const std::vector<std::pair<std::string, Tensor> >& inputs,
|
||||||
|
const std::vector<std::string>& output_names,
|
||||||
std::vector<Tensor>* outputs);
|
std::vector<Tensor>* outputs);
|
||||||
|
|
||||||
/// \brief List devices in the session.
|
/// \brief List devices in the session.
|
||||||
@ -338,7 +339,7 @@ Status NewSession(const SessionOptions& options, Session** out_session);
|
|||||||
/// If Reset succeeds, this function will return `OK()`. Otherwise, this
|
/// If Reset succeeds, this function will return `OK()`. Otherwise, this
|
||||||
/// function will return an error status.
|
/// function will return an error status.
|
||||||
Status Reset(const SessionOptions& options,
|
Status Reset(const SessionOptions& options,
|
||||||
const std::vector<string>& containers);
|
const std::vector<std::string>& containers);
|
||||||
|
|
||||||
/// \brief Create a new session with the given options.
|
/// \brief Create a new session with the given options.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user