python - Created TensorFlow Lite XNNPACK delegate for CPU - ('--log-level=1') doesn't work - Stack Overf

A simple Python script (Selenium + ChromeDriver):# import the By class, which allows you to choose how

A simple Python script (Selenium + ChromeDriver):

# import the By class, which allows you to choose how to search for an element
 from selenium.webdrivermon.by import By
# initialize the browser driver. After this command, you should see a new open           browser window
driver = webdriver.Chrome()
# the time.sleep command sets a pause of 5 seconds so that we can see what's happening in the browser
time.sleep(5)
# The get method tells the browser to open the site at the specified link
driver.get(";)
time.sleep(5)
# The find_element method allows you to find the desired element on the site by specifying the path to it. We will discuss methods for searching elements later
# The method takes the search method and the value we will search for as arguments
# We search for a field for entering text
textarea = driver.find_element(By.CSS_SELECTOR, ".textarea")
# We write the answer text in the found field
textarea.send_keys("get()")
time.sleep(5)
# We find a button that sends the entered solution
submit_button = driver.find_element(By.CSS_SELECTOR, ".submit-submission")
# We tell the driver to click the button. After this command, we should see a     message about the correct answer
submit_button.click()
time.sleep(5)
# After completing all the actions, we must not fet to close the browser window
driver.quit()``

An error occurs:

 Created TensorFlow Lite XNNPACK delegate for CPU.
 [7776:2240:0129/163554.633:ERROR:command_buffer_proxy_impl(331)] GPU state   invalid after WaitForGetOffsetInRange.

enter image description here

Still didn't help. What am I doing wrong?

I read a lot of information. Added:

import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--log-level=1')
chrome_options.add_argument('--log-level=2')
chrome_options.add_argument('--log-level=3')
chrome_options.add_argument('--disable-gpu') # Disable GPU hardware acceleration
chrome_options.add_argument('--disable-dev-shm-usage') # Overcome limited resource problems
chrome_options.add_argument('--no-sandbox') # Bypass OS security model
chrome_options.add_argument('--disable-web-security') # Disable web security
chrome_options.add_argument('--allow-running-insecure-content') # Allow running insecure content
chrome_options.add_argument('--disable-webrtc') # Disable WebRTC

Still didn't help! enter image description here

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745293300a4620992.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信