aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/pywrap_tfe.i
diff options
context:
space:
mode:
authorGravatar bstriner <bstriner@gmail.com>2018-08-14 04:48:11 -0400
committerGravatar bstriner <bstriner@gmail.com>2018-08-14 04:48:11 -0400
commit26e7d51fee4ecfaeffbfad7beaf6952b3132b444 (patch)
tree662a88fa4dece905485a1d7c3f454f0b59e43acc /tensorflow/python/pywrap_tfe.i
parent285273717d17c0609c49e020b4cc9220913d3558 (diff)
py37
Diffstat (limited to 'tensorflow/python/pywrap_tfe.i')
-rwxr-xr-x[-rw-r--r--]tensorflow/python/pywrap_tfe.i6
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*) {