pointnet train函數第十六至第二十句

config = tf.ConfigProto()
        config.gpu_options.allow_growth = True
        config.allow_soft_placement = True
        config.log_device_placement = False
        sess = tf.Session(config=config)

其十六~十九,屬於即將初始化的session的config設置

十六句初始化一個config,後面三句分別爲

動態申請顯存爲true

設置自動選擇運行設備爲true

設置記錄,operation以及tensor在哪個設備上運行爲false

二十句則爲初始化session配置爲config

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章