You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run the example "tensorflow/g3doc/how_tos/reading_data/convert_to_records.py", but there is an error saying function signature mismatch on the bool WriteRecord(::tensorflow::StringPiece record); call.
My swig version is SWIG Version 1.3.40
A simple fix is to change bool WriteRecord(::tensorflow::StringPiece record); to bool WriteRecord(const string &record); for these two files,
StringPiece is faster than string in some cases, so we don't want to change the signature in that way. Can you add the full error message? Also, what happens if you change ::tensorflow::StringPiece to just tensorflow::StringPiece (i.e., remove the ::)?
As a reference, following is the TypeError with "::".
File "tensorflow/python/pywrap_tensorflow.py", line 132, in WriteRecord
def WriteRecord(self, *args): return _pywrap_tensorflow.PyRecordWriter_WriteRecord(self, *args)
TypeError: in method 'PyRecordWriter_WriteRecord', argument 2 of type '::tensorflow::StringPiece'
Activity
girving commentedon Nov 30, 2015
StringPieceis faster thanstringin some cases, so we don't want to change the signature in that way. Can you add the full error message? Also, what happens if you change::tensorflow::StringPieceto justtensorflow::StringPiece(i.e., remove the::)?raingo commentedon Nov 30, 2015
Removing the "::" solves the problem. Thanks!
As a reference, following is the TypeError with "::".
girving commentedon Dec 1, 2015
Thanks, I'll fix this in the code.
TensorFlow: upstream changes to git
TensorFlow: upstream changes to git
Merge pull request tensorflow#358 from ROCmSoftwarePlatform/develop-u…
PR tensorflow#358: Adding support for INT8 Conv+BiasAdd+Sum+{Requantize}
Update XNNPACK in XLA