[PyTorch] torch.nn.Module source code analysis

There are up to 48 functions in the class torch.nn.Module. This class is the base class of all the neural network module s in PyTorch. The network models created by ourselves are all subclasses of this class. The following is an example. This article will read this base class with you. import torch. ...

Posted on Tue, 25 Feb 2020 08:30:11 -0500 by eruiz1973

Spring MVC data format

The last blog used a data type converter to convert a time string into a Date, which is implemented by data format. Formattingconversionservicefactorybean class: When using a custom type converter, you need to register the type converter through the converters property of org.springframework.contex ...

Posted on Tue, 25 Feb 2020 06:56:22 -0500 by I WanT To Code PHP

2, Upload / Download & cross domain request for JSON

1. upload 1.1 form form upload Shortcomings: jump page; information loss, need customers to fill in new information; Example 1: <form action="http://localhost:8088/backend/post_file.php" method="post" enctype="multipart/form-data" > <input type="file" name="file"> <input type="s ...

Posted on Tue, 25 Feb 2020 04:29:39 -0500 by Digimatt

Use of Stream stream

This article mainly explains the use of Stream stream in JDK8, including how to filter, slice, map, find, match, reduce and so on. Each type will have corresponding cases which are easy to understand   1. The concept of stream Stream API is a new key component of JDK8 to process collection. The stream stream here is different from I/O stre ...

Posted on Tue, 25 Feb 2020 03:50:22 -0500 by GreenCore

Convolutional neural network for verification code recognition

Article directory I. Preface 2, Knowledge reserve (based on personal understanding) 3, Crawling verification code picture 4, Data processing 5, Define, train, test neural networks 6, Visualization processing and subsequent application Seven. Convolutional neural network module source code ...

Posted on Tue, 25 Feb 2020 03:23:11 -0500 by clarket

Cross domain access to resources

Article directory Homologous policy Ajax request restrictions Solution Using JSONP to solve the problem of homology restriction Solutions on the server side CORS cross domain resource sharing cookie Homologous policy The concept of homology: if two pages have the same protocol, domain name and ...

Posted on Tue, 25 Feb 2020 01:25:02 -0500 by learnphp1

reflection mechanism

1, Reflection: 1. Reflection refers to a class that can be loaded, probed, and used at run time, completely unknown during compilation. 2. In the running state of the program, you can dynamically load a class with only a name. For any loaded class, you can know all the properties and methods of the class; For any object, you can call any of its ...

Posted on Mon, 24 Feb 2020 09:48:32 -0500 by benrussell

spring source code interpretation (excerpt)

From: https://javaloop.com/post/spring-ioc The two most important aspects of IOC One is to create a bean container One is the initialization bean An example of starting a spring container: public static void main(String[] args){ ApplicationContext context = new ClassPathXmlApplicationContext("classpat ...

Posted on Mon, 24 Feb 2020 06:22:42 -0500 by jenni

Analyze the principle of Vue and realize two-way binding MVVM

What can this article help you understand? 1. Understand the two-way data binding principle and core code module of vue 2. Ease curiosity and learn how to achieve two-way binding In order to illustrate the principle and implementation, the relevant code in this paper is mainly from the source code of v ...

Posted on Mon, 24 Feb 2020 05:18:12 -0500 by phpmixx

Multithread concurrent thread pool

Multithreading concurrency (1) understanding Java virtual machine JVMMultithreading concurrency (2) understanding ThreadMulti thread concurrent (3) lock synchronized, volatileMultithreading concurrency (4) understanding the atomic class AtomicXX attribute address offsetMultithreading concurrency (5) ...

Posted on Mon, 24 Feb 2020 01:32:09 -0500 by bh