Tag Archives: Programmer

Solution of Java resources error reporting

These two items are very annoying when encountering this problem. Although they have no actual impact, programmers don’t like to see errors reported.
it’s generally good to make three changes

1. Change other versions to 3.0

<?xml version="1.0" encoding="UTF-8"?> 
<web-app version="3.0"
 xmlns="http://java.sun.com/xml/ns/javaee"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  
    http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
  <display-name>Archetype Created Web Application</display-name>
</web-app>

2. Find the root directory of the project, an XML in the. Setting file, or change the version to 3.0

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="wst.jsdt.web"/>
  <installed facet="jst.web" version="3.0"/>
  <installed facet="wst.jsdt.web" version="1.0"/>
  <installed facet="java" version="1.8"/>
  <installed facet="jst.jaxrs" version="2.0"/>
  <installed facet="jst.jsf" version="2.2"/>
</faceted-project>

3. Another possibility is to see the directory missing and build path, and then create a new directory

Pytorch RuntimeError CuDNN error CUDNN_STATUS_SUCCESS (How to Fix)

When I used RNN in Pytorch and sent it to the GPU for computation, there was:
RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS
Before the error appeared, my environment was:
OS: Ubuntu 16.0.4
GPU: NVIDIA GForce RTX 2080 (view GPU and driver information can be used command: nvidia-smi)
CUDA: cuda9.0
cudnn: 7.x for cuda9.0
Look up the solution on the Internet, in fact, encountered this kind of problem is very simple, is
1. Update cuda and cudnn
change your cuda and cudnn to 9.2 or 10.0 or above the lowest version of cuda supported by your GPU;
2. Update pytorch and torchvision versions
remember, after updating cuda and cudnn, be sure to update pytorch to a version suitable for your cuda, such as torch0.4.1 for cuda9.2.
After the above 2 steps, you can basically solve this problem. The reference method is as follows:
https://discuss.pytorch.org/t/runtimeerror-cudnn-error-cudnn-status-success/28045).