标签: python c++ tensorflow
我需要了解几行C ++中的sensorflow代码,并将其转换为Python:
tensorflow::Tensor phaseTrain(tensorflow::DT_BOOL,tensorflow::TensorShape()); phaseTrain.scalar<bool>()() = false;
如何最好地将其翻译成Python?