PyTorch learning notes (18) -- cuda extension based on Python 1.1.0

0. Preface For some special operators, we need to customize their forward and reverse processes, so that they can obtain faster speed and accelerate the training of the model. In this way, we will naturally think of using PyTorch's cuda extension to realize. Here, I will start with a simple and easy t ...

Posted on Wed, 19 Feb 2020 21:24:44 -0800 by mammy

kotlin common tool class summary, efficient and elegant development of Android

   with the popularity of Kotlin, it is necessary to summarize and sort out the commonly used tool classes in development, includingUse kotlin to extend Android native control methods and properties. It is mainly divided into two parts: tool class util and native control extension ext toast usage toast("hello") click usage but ...

Posted on Wed, 19 Feb 2020 07:36:08 -0800 by Mark1inLA

Lambda expression of must know must know

Java is a powerful object-oriented language. In addition to eight basic data types, everything else is an object. Therefore, defining a function or method in Java is inseparable from an object, which means that it is difficult to directly pass a method or function as a parameter, and the Lambda expression in Java 8 solves this problem. 1, Why L ...

Posted on Wed, 19 Feb 2020 05:46:17 -0800 by valen53

Talk about the drawing process of View in an abstract way

Preface: Many times, when we look at the source code, we can understand its principle when we look at it, but it's easy to forget it soon after. This is because we don't leave an impression, know what we see, but feel unable to say it. This is the reason why we didn't summarize it; At present, many peo ...

Posted on Tue, 18 Feb 2020 20:29:50 -0800 by jolly

Full stack solution based on Serverless Component

What is Serverless Component Serverless Component yes Serverless Framework Support scenario solutions for multiple cloud resource choreography and organization. The goal of Serverless Component is to smooth out the differences between different cloud service platforms. You can think of it as a dependency module that can build applications more ...

Posted on Tue, 18 Feb 2020 01:56:08 -0800 by Duodecillion

From nothing to useful Python to create a programming language of its own 1

Preface If you can compile the principle, understand the lexical analysis algorithm and syntax analysis algorithm, you can use any language to do such a thing. The reason why you use Python is that Python has the longest and most handy programming language. The so-called performance is not in the scope of this paper, the main focus of this pap ...

Posted on Mon, 17 Feb 2020 01:37:06 -0800 by ram4nd

Spring cloud 23. The Config client obtains the configuration on GitHub through the Config server.

Spring cloud config client configuration and testing ① Create a new file in the local D: \ yunweigongchengshi \ microservicecloud config path microservicecloud-config-client.yml.       ② microservicecloud-config-client.yml content. microservicecloud-config-client.yml. spring: profiles: ...

Posted on Sun, 16 Feb 2020 23:09:55 -0800 by mark_18

Mount the web page to github (super detailed)

First step Log in to Github account, and then create a remote warehouse. Here we name it bird. After creation, copy its ssh URL for standby The second step Enter bird warehouse, selec ...

Posted on Sun, 16 Feb 2020 03:21:52 -0800 by theDog

Adapter group encapsulation

YCGroupAdapter 01. Leading edge description 1.1 case display effect 1.2 functions and advantages of the library 1.3 introduction to relevant categories 02. How to use 2.1 how to import 2.2 simplest use 2.3 suggestions for use 3 commonly used api 3.1 custom adapter 3.2 notify related 3.3 click event listener 04. Implementation steps 4 ...

Posted on Sat, 15 Feb 2020 21:52:15 -0800 by Stuie_b

Using Leader Selection in Kubernetes to realize high availability of components

In Kubernetes, Kube scheduler and Kube controller manager are usually deployed with multiple replicas to ensure high availability, while there is only one instance that is actually working. Here we use the leader selection mechanism to ensure that the leader is in working state, and after the leader is hung up, select a new leader from other no ...

Posted on Sat, 15 Feb 2020 11:28:58 -0800 by Canabalooza