Clarify the need for calling tensorflow::port::InitMain() before using the rest of TensorFlow.
PiperOrigin-RevId: 219185259
This commit is contained in:
parent
4f09245c1f
commit
d09c687897
@ -19,10 +19,10 @@ limitations under the License.
|
||||
namespace tensorflow {
|
||||
namespace port {
|
||||
|
||||
// Platform-specific initialization routine that may be invoked by a
|
||||
// Platform-specific initialization routine that should be invoked by a
|
||||
// main() program that uses TensorFlow.
|
||||
//
|
||||
// Default implementation does nothing.
|
||||
// This performs necessary initialization on some platforms; TensorFlow
|
||||
// may not work unless it has been called.
|
||||
void InitMain(const char* usage, int* argc, char*** argv);
|
||||
|
||||
} // namespace port
|
||||
|
Loading…
Reference in New Issue
Block a user