diff options
Diffstat (limited to 'tensorflow/python/pywrap_tfe.i')
-rwxr-xr-x[-rw-r--r--] | tensorflow/python/pywrap_tfe.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/python/pywrap_tfe.i b/tensorflow/python/pywrap_tfe.i index 157f2341e0..bc02e9a35c 100644..100755 --- a/tensorflow/python/pywrap_tfe.i +++ b/tensorflow/python/pywrap_tfe.i @@ -106,19 +106,19 @@ limitations under the License. } %typemap(in) const char* serialized_function_def { - $1 = TFE_GetPythonString($input); + $1 = const_cast<char*>(TFE_GetPythonString($input)); } %typemap(in) const char* device_name { if ($input == Py_None) { $1 = nullptr; } else { - $1 = TFE_GetPythonString($input); + $1 = const_cast<char*>(TFE_GetPythonString($input)); } } %typemap(in) const char* op_name { - $1 = TFE_GetPythonString($input); + $1 = const_cast<char*>(TFE_GetPythonString($input)); } %typemap(in) (TFE_Context*) { |