#include "nne.cuh"
#include "cuda.h"
#include "cuda_runtime_api.h"
#include "device_launch_parameters.h"
#include <cstdlib>

__global__ void nodeCal(float* inList, float* wList, float* outList);
__global__ void nodeLog(float* outputList, float sigmoidConst);
__global__ void nodeGradCal(float* wList, float* outputList, float* gradList);
__global__ void nodeDelLog(float* inputList, float* gradList, float sigmoidConst);
__global__ void nodeLearn(float *inputList, float *delList, float *weightList, float learningFactor, int inputNum);

Node::Node() : output(0), input(0), localGrad(0) {
	inputWeightList.push_back(0);
}

Node::Node(int inputNum) : output(0), input(0), localGrad(0) {
	inputWeightList.push_back(0);
	for (int i = 0; i < inputNum; i++) {
		inputWeightList.push_back((float)rand() / RAND_MAX);
	}
}

Node::Node(std::vector<float>& inputWeightList, int nodeIndex, int inputWeightLength) : output(0), input(0), localGrad(0) {
	inputWeightLength++;
	int offset = nodeIndex * inputWeightLength;
	//inputWeightList.push_back(0);
	for (int i = 0; i < inputWeightLength; i++) {
		this->inputWeightList.push_back(inputWeightList[offset + i]);
	}
}

Node::~Node() {}

Layer::Layer() : sigmoidConst(0.01) {}

Layer::Layer(int nodeListLength, int inputWeightLength, float sigmoidConst){
	Node* newNode;
	this->sigmoidConst = sigmoidConst;
	for (int i = 0; i < nodeListLength; i++) {
		newNode = new Node(inputWeightLength);
		nodeList.push_back(newNode);
	}
}

Layer::Layer(std::vector<float>& inputWeightList, int nodeListLength, int inputWeightLength, float sigmoidConst) {
	Node* newNode;
	this->sigmoidConst = sigmoidConst;
	for (int i = 0; i < nodeListLength; i++) {
		newNode = new Node(inputWeightList, i, inputWeightLength);
		nodeList.push_back(newNode);
	}
}

Layer::~Layer() {
	int length = nodeList.size();
	for (int i = 0; i < length; i++) {
		delete nodeList[i];
	}
}

void Layer::forwardCal(std::vector<float>& inputList) {
	int inputNum = inputList.size() + 1;
	int outputNum = nodeList.size();
	std::vector<float> weightList;
	float* outputList = new float[outputNum];
	float *dInputList, *dWeightList, *dOutputList;

	cudaMalloc(&dInputList, inputNum * sizeof(float));
	cudaMalloc(&dWeightList, inputNum * outputNum * sizeof(float));
	cudaMalloc(&dOutputList, outputNum * sizeof(float));

	inputList.insert(inputList.begin(), 1);

	cudaMemcpy(dInputList, inputList.data(), inputNum * sizeof(float), cudaMemcpyHostToDevice);

	for (int i = 0; i < outputNum; i++) {
		weightList.insert(weightList.end(), nodeList[i]->inputWeightList.begin(), nodeList[i]->inputWeightList.end());
	}

	cudaMemcpy(dWeightList, weightList.data(), inputNum * outputNum * sizeof(float), cudaMemcpyHostToDevice);
	//cudaMemcpy(dOutputList, outputList, outputNum * sizeof(float), cudaMemcpyHostToDevice);

	nodeCal <<<outputNum, inputNum, sizeof(float) * inputNum>>> (dInputList, dWeightList, dOutputList);
	cudaMemcpy(outputList, dOutputList, outputNum * sizeof(float), cudaMemcpyDeviceToHost);
	for (int i = 0; i < outputNum; i++) {
		nodeList[i]->input = outputList[i];
	}

	nodeLog <<<1, outputNum >>> (dOutputList, sigmoidConst);
	cudaMemcpy(outputList, dOutputList, outputNum * sizeof(float), cudaMemcpyDeviceToHost);
	cudaFree(dInputList);
	cudaFree(dWeightList);
	cudaFree(dOutputList);
	for (int i = 0; i < outputNum; i++) {
		nodeList[i]->output = outputList[i];
	}
	delete outputList;
	inputList.erase(inputList.begin());
}

void Layer::forwardCal(Layer& bLayer){
	std::vector<Node*> &bNodeList = bLayer.nodeList;
	int inputNum = bNodeList.size();
	int outputNum = nodeList.size();
	std::vector<float> inputList;
	std::vector<float> weightList;
	float* outputList = new float[outputNum];
	float *dInputList, *dWeightList, *dOutputList;
	
	cudaMalloc(&dInputList, (inputNum + 1) * sizeof(float));
	cudaMalloc(&dWeightList, (inputNum + 1) * outputNum * sizeof(float));
	cudaMalloc(&dOutputList, outputNum * sizeof(float));
	
	inputList.push_back(1);
	for (int i = 0; i < inputNum; i++) {
		inputList.push_back((*bNodeList[i]).output);
	}
	inputNum++;

	cudaMemcpy(dInputList, inputList.data(), inputNum * sizeof(float), cudaMemcpyHostToDevice);

	for (int i = 0; i < outputNum; i++) {
		weightList.insert(weightList.end(), nodeList[i]->inputWeightList.begin(), nodeList[i]->inputWeightList.end());
	}

	cudaMemcpy(dWeightList, weightList.data(), inputNum * outputNum * sizeof(float), cudaMemcpyHostToDevice);
	//cudaMemcpy(dOutputList, outputList, outputNum * sizeof(float), cudaMemcpyHostToDevice);

	nodeCal <<<outputNum, inputNum, sizeof(float) * inputNum >>> (dInputList, dWeightList, dOutputList);
	cudaMemcpy(outputList, dOutputList, outputNum * sizeof(float), cudaMemcpyDeviceToHost);
	for (int i = 0; i < outputNum; i++) {
		nodeList[i]->input = outputList[i];
	}
	nodeLog <<<1, outputNum >>> (dOutputList, sigmoidConst);
	cudaMemcpy(outputList, dOutputList, outputNum * sizeof(float), cudaMemcpyDeviceToHost);
	cudaFree(dInputList);
	cudaFree(dWeightList);
	cudaFree(dOutputList);
	for (int i = 0; i < outputNum; i++) {
		nodeList[i]->output = outputList[i];
	}
	delete outputList;
}

void Layer::getGrad(Layer& fLayer) {
	int inputNum = nodeList.size();
	int outputNum = fLayer.nodeList.size();
	std::vector<Node*> &fNodeList = fLayer.nodeList;
	std::vector<float> inputList;
	std::vector<float> weightList;
	std::vector<float> outputList;
	float *gradList = new float[inputNum];
	float *dInputList, *dWeightList, *dOutputList, *dGradList;

	cudaMalloc(&dInputList, inputNum * sizeof(float));
	cudaMalloc(&dWeightList, inputNum * outputNum * sizeof(float));
	cudaMalloc(&dOutputList, outputNum * sizeof(float));
	cudaMalloc(&dGradList, inputNum * sizeof(float));

	for (int i = 0; i < inputNum; i++) {
		inputList.push_back(nodeList[i]->input);
	}

	cudaMemcpy(dInputList, inputList.data(), inputNum * sizeof(float), cudaMemcpyHostToDevice);

	for (int i = 0; i < outputNum; i++) {
		outputList.push_back(fNodeList[i]->localGrad);
		weightList.insert(weightList.end(), ++(fNodeList[i]->inputWeightList.begin()), fNodeList[i]->inputWeightList.end());
	}

	cudaMemcpy(dOutputList, outputList.data(), outputNum * sizeof(float), cudaMemcpyHostToDevice);
	cudaMemcpy(dWeightList, weightList.data(), inputNum * outputNum * sizeof(float), cudaMemcpyHostToDevice);

	nodeGradCal <<<inputNum, outputNum, sizeof(float) * outputNum >>> (dWeightList, dOutputList, dGradList);
	cudaMemcpy(gradList, dGradList, inputNum * sizeof(float), cudaMemcpyDeviceToHost);
	nodeDelLog <<<1, inputNum >>> (dInputList, dGradList, sigmoidConst);
	cudaMemcpy(gradList, dGradList, inputNum * sizeof(float), cudaMemcpyDeviceToHost);

	cudaFree(dInputList);
	cudaFree(dWeightList);
	cudaFree(dOutputList);
	cudaFree(dGradList);

	for (int i = 0; i < inputNum; i++) {
		nodeList[i]->localGrad = gradList[i];
	}

	delete gradList;
}

float Layer::getGrad(std::vector<float>& answerList) {
	int inputNum = nodeList.size();
	std::vector<float> inputList;
	std::vector<float> outputList;
	float *gradList = new float[inputNum];
	float *dInputList, *dOutputList, *dGradList, mse = 0;

	cudaMalloc(&dInputList, inputNum * sizeof(float));
	cudaMalloc(&dOutputList, inputNum * sizeof(float));
	cudaMalloc(&dGradList, inputNum * sizeof(float));

	for (int i = 0; i < inputNum; i++) {
		inputList.push_back(nodeList[i]->input);
		outputList.push_back(answerList[i] - nodeList[i]->output);
	}
	memcpy(gradList, outputList.data(), inputNum * sizeof(float));

	cudaMemcpy(dInputList, inputList.data(), inputNum * sizeof(float), cudaMemcpyHostToDevice);
	cudaMemcpy(dGradList, gradList, inputNum * sizeof(float), cudaMemcpyHostToDevice);

	nodeDelLog <<<1, inputNum >>> (dInputList, dGradList, sigmoidConst);
	cudaMemcpy(gradList, dGradList, inputNum * sizeof(float), cudaMemcpyDeviceToHost);

	for (int i = 0; i < inputNum; i++) {
		nodeList[i]->localGrad = gradList[i];
	}
	cudaFree(dInputList);
	cudaFree(dOutputList);
	cudaFree(dGradList);

	delete gradList;
	for (int i = 0; i < inputNum; i++) {
		mse += outputList[i] * outputList[i];
	}
	mse /= inputNum;
	return mse;
}

void Layer::learnWeight(Layer& bLayer, float learningFactor) {
	std::vector<Node*> &bNodeList = bLayer.nodeList;
	int inputNum = bNodeList.size();
	int outputNum = nodeList.size();
	std::vector<float> inputList;
	std::vector<float> delList;
	float *weightList = new float[(inputNum + 1) * outputNum];
	float *dInputList, *dDelList, *dWeightList;
	dim3 threadGrid(inputNum + 1, outputNum);
	cudaMalloc(&dInputList, (inputNum + 1) * sizeof(float));
	cudaMalloc(&dDelList, outputNum * sizeof(float));
	cudaMalloc(&dWeightList, (inputNum + 1) * outputNum * sizeof(float));

	inputList.push_back(1);

	for (int i = 0; i < inputNum; i++) {
		inputList.push_back(bNodeList[i]->output);
	}

	inputNum++;

	cudaMemcpy(dInputList, inputList.data(), inputNum * sizeof(float), cudaMemcpyHostToDevice);

	for (int i = 0; i < outputNum; i++) {
		memcpy(weightList + i * inputNum, nodeList[i]->inputWeightList.data(), inputNum * sizeof(float));
		delList.push_back(nodeList[i]->localGrad);
	}

	cudaMemcpy(dWeightList, weightList, inputNum * outputNum * sizeof(float), cudaMemcpyHostToDevice);
	cudaMemcpy(dDelList, delList.data(), outputNum * sizeof(float), cudaMemcpyHostToDevice);

	nodeLearn <<<1, threadGrid >>> (dInputList, dDelList, dWeightList, learningFactor, inputNum);

	cudaMemcpy(weightList, dWeightList, inputNum * outputNum * sizeof(float), cudaMemcpyDeviceToHost);

	for (int i = 0; i < outputNum; i++) {
		for (int j = 0; j < inputNum; j++) {
			nodeList[i]->inputWeightList[j] = weightList[i * inputNum + j];
		}
	}

	cudaFree(dInputList);
	cudaFree(dDelList);
	cudaFree(dWeightList);

	delete weightList;
}

void Layer::learnWeight(std::vector<float>& inputList, float learningFactor){
	int inputNum = inputList.size() + 1;
	int outputNum = nodeList.size();
	std::vector<float> delList;
	float *weightList = new float[inputNum * outputNum];
	float *dInputList, *dDelList, *dWeightList;
	dim3 threadGrid(inputNum, outputNum);
	cudaMalloc(&dInputList, inputNum * sizeof(float));
	cudaMalloc(&dDelList, outputNum * sizeof(float));
	cudaMalloc(&dWeightList, inputNum * outputNum * sizeof(float));

	inputList.insert(inputList.begin(), 1);

	cudaMemcpy(dInputList, inputList.data(), inputNum * sizeof(float), cudaMemcpyHostToDevice);

	for (int i = 0; i < outputNum; i++) {
		memcpy(weightList + i * inputNum, nodeList[i]->inputWeightList.data(), inputNum * sizeof(float));
		delList.push_back(nodeList[i]->localGrad);
	}

	cudaMemcpy(dWeightList, weightList, inputNum * outputNum * sizeof(float), cudaMemcpyHostToDevice);
	cudaMemcpy(dDelList, delList.data(), outputNum * sizeof(float), cudaMemcpyHostToDevice);

	nodeLearn <<<1, threadGrid >>> (dInputList, dDelList, dWeightList, learningFactor, inputNum);

	cudaMemcpy(weightList, dWeightList, inputNum * outputNum * sizeof(float), cudaMemcpyDeviceToHost);

	for (int i = 0; i < outputNum; i++) {
		for (int j = 0; j < inputNum; j++) {
			nodeList[i]->inputWeightList[j] = weightList[i * inputNum + j];
		}
	}

	cudaFree(dInputList);
	cudaFree(dDelList);
	cudaFree(dWeightList);

	delete weightList;
	inputList.erase(inputList.begin());
}

__global__ void nodeCal(float* inputList, float* weightList, float* outputList){
	//int outputIdx = blockIdx.x * inputNum + threadIdx.x  ;
	int outputIdx = blockIdx.x * blockDim.x + threadIdx.x;
	float result = 0;
	extern __shared__ float results[];
	results[threadIdx.x] = inputList[threadIdx.x] * weightList[outputIdx];
	__syncthreads();
	//for (int i = 0; i < inputNum; i++) {
	for (int i = 0; i < blockDim.x; i++) {
		result += results[i];
	}
	outputList[blockIdx.x] = result;
}

__global__ void nodeLog(float* outputList, float sigmoidConst) {
	outputList[threadIdx.x] = tanh(sigmoidConst * outputList[threadIdx.x]);
}

__global__ void nodeGradCal(float* wList, float* outputList, float* gradList) {
	int weightIdx = blockIdx.x + threadIdx.x * gridDim.x;
	extern __shared__ float results[];
	float result = 0;
	results[threadIdx.x] = outputList[threadIdx.x] * wList[weightIdx];
	__syncthreads();
	for (int i = 0; i < blockDim.x; i++) {
		result += results[i];
	}
	gradList[blockIdx.x] = result;
}

__global__ void nodeDelLog(float* inputList, float* gradList, float sigmoidConst) {
	float temp;
	temp = cosh(sigmoidConst * inputList[threadIdx.x]);
	temp *= temp;
	temp = sigmoidConst / temp;
	gradList[threadIdx.x] *= temp;
}

__global__ void nodeLearn(float *inputList, float *delList, float *weightList, float learningFactor, int inputNum) {
	int weightIdx = threadIdx.x + threadIdx.y * inputNum;
	//int weightIdx = threadIdx.x + threadIdx.y * blockDim.x;
	weightList[weightIdx] += inputList[threadIdx.x] * delList[threadIdx.y] * learningFactor;
}

	.file	"tmpxft_0032ac45_00000000-6_nne.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2930:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2930:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0:
.LFB3303:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L3
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L5
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L5:
	call	_ZSt17__throw_bad_allocv@PLT
.L4:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L3:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE3303:
	.size	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	.type	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0, @function
_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0:
.LFB3306:
	.cfi_startproc
	jmp	cudaMalloc@PLT
	.cfi_endproc
.LFE3306:
	.size	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0, .-_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	.align 2
	.globl	_ZN5LayerC2Ev
	.type	_ZN5LayerC2Ev, @function
_ZN5LayerC2Ev:
.LFB2911:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	movl	$0x3c23d70a, 24(%rdi)
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	ret
	.cfi_endproc
.LFE2911:
	.size	_ZN5LayerC2Ev, .-_ZN5LayerC2Ev
	.globl	_ZN5LayerC1Ev
	.set	_ZN5LayerC1Ev,_ZN5LayerC2Ev
	.globl	_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_
	.type	_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_, @function
_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_:
.LFB2952:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z7nodeCalPfS_S_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L12:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2952:
	.size	_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_, .-_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_
	.globl	_Z7nodeCalPfS_S_
	.type	_Z7nodeCalPfS_S_, @function
_Z7nodeCalPfS_S_:
.LFB2953:
	.cfi_startproc
	endbr64
	jmp	_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_
	.cfi_endproc
.LFE2953:
	.size	_Z7nodeCalPfS_S_, .-_Z7nodeCalPfS_S_
	.globl	_Z27__device_stub__Z7nodeLogPffPff
	.type	_Z27__device_stub__Z7nodeLogPffPff, @function
_Z27__device_stub__Z7nodeLogPffPff:
.LFB2954:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movss	%xmm0, 4(%rsp)
	leaq	52(%rsp), %rsi
	leaq	40(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L17
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z7nodeLogPff(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L17:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2954:
	.size	_Z27__device_stub__Z7nodeLogPffPff, .-_Z27__device_stub__Z7nodeLogPffPff
	.globl	_Z7nodeLogPff
	.type	_Z7nodeLogPff, @function
_Z7nodeLogPff:
.LFB2955:
	.cfi_startproc
	endbr64
	jmp	_Z27__device_stub__Z7nodeLogPffPff
	.cfi_endproc
.LFE2955:
	.size	_Z7nodeLogPff, .-_Z7nodeLogPff
	.globl	_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_
	.type	_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_, @function
_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_:
.LFB2956:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z11nodeGradCalPfS_S_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L22:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2956:
	.size	_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_, .-_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_
	.globl	_Z11nodeGradCalPfS_S_
	.type	_Z11nodeGradCalPfS_S_, @function
_Z11nodeGradCalPfS_S_:
.LFB2957:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_
	.cfi_endproc
.LFE2957:
	.size	_Z11nodeGradCalPfS_S_, .-_Z11nodeGradCalPfS_S_
	.globl	_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f
	.type	_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f, @function
_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f:
.LFB2958:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	movq	%rsi, 16(%rsp)
	leaq	48(%rsp), %rdi
	leaq	60(%rsp), %rsi
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z10nodeDelLogPfS_f(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L27:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2958:
	.size	_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f, .-_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f
	.globl	_Z10nodeDelLogPfS_f
	.type	_Z10nodeDelLogPfS_f, @function
_Z10nodeDelLogPfS_f:
.LFB2959:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f
	.cfi_endproc
.LFE2959:
	.size	_Z10nodeDelLogPfS_f, .-_Z10nodeDelLogPfS_f
	.globl	_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi
	.type	_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi, @function
_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi:
.LFB2960:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, (%rsp)
	leaq	40(%rsp), %rcx
	movss	%xmm0, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L32
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z9nodeLearnPfS_S_fi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L32:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2960:
	.size	_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi, .-_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi
	.globl	_Z9nodeLearnPfS_S_fi
	.type	_Z9nodeLearnPfS_S_fi, @function
_Z9nodeLearnPfS_S_fi:
.LFB2961:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi
	.cfi_endproc
.LFE2961:
	.size	_Z9nodeLearnPfS_S_fi, .-_Z9nodeLearnPfS_S_fi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"_Z9nodeLearnPfS_S_fi"
.LC2:
	.string	"_Z10nodeDelLogPfS_f"
.LC3:
	.string	"_Z11nodeGradCalPfS_S_"
.LC4:
	.string	"_Z7nodeLogPff"
.LC5:
	.string	"_Z7nodeCalPfS_S_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2963:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z9nodeLearnPfS_S_fi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10nodeDelLogPfS_f(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11nodeGradCalPfS_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7nodeLogPff(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7nodeCalPfS_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2963:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorIfSaIfEED2Ev,"axG",@progbits,_ZNSt6vectorIfSaIfEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEED2Ev
	.type	_ZNSt6vectorIfSaIfEED2Ev, @function
_ZNSt6vectorIfSaIfEED2Ev:
.LFB3021:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L39
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L39:
	ret
	.cfi_endproc
.LFE3021:
	.size	_ZNSt6vectorIfSaIfEED2Ev, .-_ZNSt6vectorIfSaIfEED2Ev
	.weak	_ZNSt6vectorIfSaIfEED1Ev
	.set	_ZNSt6vectorIfSaIfEED1Ev,_ZNSt6vectorIfSaIfEED2Ev
	.text
	.align 2
	.globl	_ZN4NodeD2Ev
	.type	_ZN4NodeD2Ev, @function
_ZN4NodeD2Ev:
.LFB2898:
	.cfi_startproc
	endbr64
	jmp	_ZNSt6vectorIfSaIfEED1Ev
	.cfi_endproc
.LFE2898:
	.size	_ZN4NodeD2Ev, .-_ZN4NodeD2Ev
	.globl	_ZN4NodeD1Ev
	.set	_ZN4NodeD1Ev,_ZN4NodeD2Ev
	.section	.text._ZNSt6vectorIP4NodeSaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIP4NodeSaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIP4NodeSaIS1_EED2Ev
	.type	_ZNSt6vectorIP4NodeSaIS1_EED2Ev, @function
_ZNSt6vectorIP4NodeSaIS1_EED2Ev:
.LFB3037:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L42
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L42:
	ret
	.cfi_endproc
.LFE3037:
	.size	_ZNSt6vectorIP4NodeSaIS1_EED2Ev, .-_ZNSt6vectorIP4NodeSaIS1_EED2Ev
	.weak	_ZNSt6vectorIP4NodeSaIS1_EED1Ev
	.set	_ZNSt6vectorIP4NodeSaIS1_EED1Ev,_ZNSt6vectorIP4NodeSaIS1_EED2Ev
	.text
	.align 2
	.globl	_ZN5LayerD2Ev
	.type	_ZN5LayerD2Ev, @function
_ZN5LayerD2Ev:
.LFB2920:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	pushq	%rdx
	.cfi_def_cfa_offset 48
	movq	8(%rdi), %rbx
	subq	(%rdi), %rbx
	sarq	$3, %rbx
.L45:
	cmpl	%r12d, %ebx
	jle	.L52
	movq	0(%rbp), %rax
	movq	(%rax,%r12,8), %r13
	testq	%r13, %r13
	je	.L46
	movq	%r13, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movl	$40, %esi
	movq	%r13, %rdi
	call	_ZdlPvm@PLT
.L46:
	incq	%r12
	jmp	.L45
.L52:
	popq	%rax
	.cfi_def_cfa_offset 40
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	_ZNSt6vectorIP4NodeSaIS1_EED1Ev
	.cfi_endproc
.LFE2920:
	.size	_ZN5LayerD2Ev, .-_ZN5LayerD2Ev
	.globl	_ZN5LayerD1Ev
	.set	_ZN5LayerD1Ev,_ZN5LayerD2Ev
	.section	.rodata._ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_.str1.1,"aMS",@progbits,1
.LC6:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.type	_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, @function
_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_:
.LFB3128:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rcx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$3, %rbx
	cmpq	%rcx, %rbx
	jne	.L54
	leaq	.LC6(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L54:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L64
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L59
	movabsq	$1152921504606846975, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L58
.L64:
	movq	%rcx, %rbx
.L58:
	leaq	0(,%rbx,8), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L59:
	movq	(%rdx), %rax
	movq	%rax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L60
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L60:
	movq	(%rsp), %rax
	leaq	8(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L61
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L61:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L62
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L62:
	leaq	(%r12,%rbx,8), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3128:
	.size	_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .-_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.section	.text._ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_,"axG",@progbits,_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_
	.type	_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_, @function
_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_:
.LFB3039:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L72
	movq	(%rdx), %rax
	addq	$8, %rsi
	movq	%rax, -8(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L72:
	jmp	_ZNSt6vectorIP4NodeSaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_endproc
.LFE3039:
	.size	_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_, .-_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_
	.section	.text._ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc:
.LFB3176:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$2305843009213693951, %rax
	sarq	$2, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L76
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L76:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L75
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L75:
	ret
	.cfi_endproc
.LFE3176:
	.size	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	.section	.text._ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.type	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, @function
_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_:
.LFB3172:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	movl	$1, %esi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %r15
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, 8(%rsp)
	leaq	.LC6(%rip), %rdx
	call	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%rbx), %r14
	movq	8(%rbx), %r12
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movq	8(%rsp), %rcx
	subq	%r14, %r15
	movq	%rax, %rbp
	movss	(%rcx), %xmm0
	movss	%xmm0, (%rax,%r15)
	testq	%r15, %r15
	jle	.L85
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L85:
	subq	%r13, %r12
	leaq	4(%rbp,%r15), %rdx
	testq	%r12, %r12
	jle	.L86
	movq	%rdx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	rep movsb
.L86:
	addq	%rdx, %r12
	testq	%r14, %r14
	je	.L87
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L87:
	movq	(%rsp), %rax
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	leaq	0(%rbp,%rax,4), %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3172:
	.size	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_, .-_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.section	.text._ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf,"axG",@progbits,_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf
	.type	_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf, @function
_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf:
.LFB3136:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdx, %r12
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	subq	(%rdi), %r13
	movq	8(%rdi), %rdi
	cmpq	16(%rbx), %rdi
	je	.L93
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rdi
	jne	.L94
	movss	(%rdx), %xmm0
	movss	%xmm0, (%rdi)
	movq	%rax, 8(%rbx)
	jmp	.L95
.L94:
	movss	-4(%rdi), %xmm0
	leaq	-4(%rdi), %rdx
	subq	%rsi, %rdx
	movss	%xmm0, (%rdi)
	movq	%rax, 8(%rbx)
	cmpq	$4, %rdx
	jle	.L96
	subq	%rdx, %rdi
	movq	%rsi, 8(%rsp)
	call	memmove@PLT
	movq	8(%rsp), %rsi
	jmp	.L97
.L96:
	jne	.L97
	movss	(%rsi), %xmm0
	movss	%xmm0, -4(%rdi)
.L97:
	movss	(%r12), %xmm0
	movss	%xmm0, (%rsi)
	jmp	.L95
.L93:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
.L95:
	movq	(%rbx), %rax
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	addq	%r13, %rax
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3136:
	.size	_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf, .-_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf
	.text
	.align 2
	.type	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, @function
_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0:
.LFB3321:
	.cfi_startproc
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L100
	movss	(%rdx), %xmm0
	addq	$4, %rsi
	movss	%xmm0, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L100:
	jmp	_ZNSt6vectorIfSaIfEE17_M_realloc_insertIJfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_
	.cfi_endproc
.LFE3321:
	.size	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0, .-_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	.align 2
	.globl	_ZN4NodeC2Ei
	.type	_ZN4NodeC2Ei, @function
_ZN4NodeC2Ei:
.LFB2892:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2892
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movl	$0x00000000, 32(%rdi)
	leaq	4(%rsp), %r13
	movq	%rax, (%rdi)
	movq	%r13, %rsi
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movq	%rax, 24(%rdi)
	movl	$0x00000000, 4(%rsp)
.LEHB0:
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	xorl	%r12d, %r12d
.L104:
	cmpl	%ebp, %r12d
	jge	.L113
	call	rand@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	cvtsi2ssl	%eax, %xmm0
	mulss	.LC8(%rip), %xmm0
	movss	%xmm0, 4(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
.LEHE0:
	incl	%r12d
	jmp	.L104
.L109:
	endbr64
	movq	%rax, %rbp
.L106:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L112
	movq	%rbp, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L113:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L108
.L112:
	call	__stack_chk_fail@PLT
.L108:
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2892:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA2892:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2892-.LLSDACSB2892
.LLSDACSB2892:
	.uleb128 .LEHB0-.LFB2892
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L109-.LFB2892
	.uleb128 0
	.uleb128 .LEHB1-.LFB2892
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE2892:
	.text
	.size	_ZN4NodeC2Ei, .-_ZN4NodeC2Ei
	.globl	_ZN4NodeC1Ei
	.set	_ZN4NodeC1Ei,_ZN4NodeC2Ei
	.align 2
	.globl	_ZN5LayerC2Eiif
	.type	_ZN5LayerC2Eiif, @function
_ZN5LayerC2Eiif:
.LFB2914:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2914
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movss	%xmm0, 24(%rdi)
	movq	%rsp, %r15
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
.L115:
	cmpl	%ebx, %r13d
	jge	.L126
	movl	$40, %edi
.LEHB2:
	call	_Znwm@PLT
.LEHE2:
	movl	%r14d, %esi
	movq	%rax, %rdi
	movq	%rax, %r12
.LEHB3:
	call	_ZN4NodeC1Ei
.LEHE3:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	movq	%r12, (%rsp)
.LEHB4:
	call	_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_
.LEHE4:
	incl	%r13d
	jmp	.L115
.L122:
	endbr64
	movq	%rax, %rbx
.L117:
	movl	$40, %esi
	movq	%r12, %rdi
	call	_ZdlPvm@PLT
	jmp	.L118
.L121:
	endbr64
	movq	%rax, %rbx
.L118:
	movq	%rbp, %rdi
	call	_ZNSt6vectorIP4NodeSaIS1_EED1Ev
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L125
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L126:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L120
.L125:
	call	__stack_chk_fail@PLT
.L120:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2914:
	.section	.gcc_except_table
.LLSDA2914:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2914-.LLSDACSB2914
.LLSDACSB2914:
	.uleb128 .LEHB2-.LFB2914
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L121-.LFB2914
	.uleb128 0
	.uleb128 .LEHB3-.LFB2914
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L122-.LFB2914
	.uleb128 0
	.uleb128 .LEHB4-.LFB2914
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L121-.LFB2914
	.uleb128 0
	.uleb128 .LEHB5-.LFB2914
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE2914:
	.text
	.size	_ZN5LayerC2Eiif, .-_ZN5LayerC2Eiif
	.globl	_ZN5LayerC1Eiif
	.set	_ZN5LayerC1Eiif,_ZN5LayerC2Eiif
	.align 2
	.globl	_ZN4NodeC2Ev
	.type	_ZN4NodeC2Ev, @function
_ZN4NodeC2Ev:
.LFB2889:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2889
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movl	$0x00000000, 32(%rdi)
	leaq	4(%rsp), %rsi
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	movq	%rax, 24(%rdi)
	movl	$0x00000000, 4(%rsp)
.LEHB6:
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
.LEHE6:
	jmp	.L135
.L131:
	endbr64
	movq	%rax, %rbp
.L128:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L134
	movq	%rbp, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L135:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L130
.L134:
	call	__stack_chk_fail@PLT
.L130:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2889:
	.section	.gcc_except_table
.LLSDA2889:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2889-.LLSDACSB2889
.LLSDACSB2889:
	.uleb128 .LEHB6-.LFB2889
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L131-.LFB2889
	.uleb128 0
	.uleb128 .LEHB7-.LFB2889
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE2889:
	.text
	.size	_ZN4NodeC2Ev, .-_ZN4NodeC2Ev
	.globl	_ZN4NodeC1Ev
	.set	_ZN4NodeC1Ev,_ZN4NodeC2Ev
	.section	.text._ZNSt6vectorIfSaIfEE9push_backERKf,"axG",@progbits,_ZNSt6vectorIfSaIfEE9push_backERKf,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE9push_backERKf
	.type	_ZNSt6vectorIfSaIfEE9push_backERKf, @function
_ZNSt6vectorIfSaIfEE9push_backERKf:
.LFB3025:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rbx
	cmpq	16(%rdi), %rbx
	je	.L137
	movss	(%rsi), %xmm0
	addq	$4, %rbx
	movss	%xmm0, -4(%rbx)
	movq	%rbx, 8(%rdi)
	jmp	.L136
.L137:
	movq	%rsi, 8(%rsp)
	leaq	.LC6(%rip), %rdx
	movl	$1, %esi
	movq	%rbx, %r15
	call	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	(%r14), %r12
	movq	8(%r14), %r13
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movq	8(%rsp), %r8
	subq	%r12, %r15
	movq	%rax, %rbp
	movss	(%r8), %xmm0
	movss	%xmm0, (%rax,%r15)
	testq	%r15, %r15
	jle	.L139
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	memmove@PLT
.L139:
	subq	%rbx, %r13
	leaq	4(%rbp,%r15), %rdi
	testq	%r13, %r13
	jle	.L140
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rdi
.L140:
	addq	%rdi, %r13
	testq	%r12, %r12
	je	.L141
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L141:
	movq	(%rsp), %rax
	movq	%rbp, (%r14)
	movq	%r13, 8(%r14)
	leaq	0(%rbp,%rax,4), %rax
	movq	%rax, 16(%r14)
.L136:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3025:
	.size	_ZNSt6vectorIfSaIfEE9push_backERKf, .-_ZNSt6vectorIfSaIfEE9push_backERKf
	.text
	.align 2
	.globl	_ZN4NodeC2ERSt6vectorIfSaIfEEii
	.type	_ZN4NodeC2ERSt6vectorIfSaIfEEii, @function
_ZN4NodeC2ERSt6vectorIfSaIfEEii:
.LFB2895:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2895
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leal	1(%rcx), %r12d
	imull	%r12d, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movslq	%edx, %rbp
	movq	%rax, 16(%rdi)
	salq	$2, %rbp
	movq	%rax, 24(%rdi)
	movl	$0x00000000, 32(%rdi)
.L147:
	cmpl	%r12d, %r14d
	jge	.L153
	movq	0(%r13), %rsi
	movq	%rbx, %rdi
	addq	%rbp, %rsi
.LEHB8:
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
.LEHE8:
	incl	%r14d
	addq	$4, %rbp
	jmp	.L147
.L150:
	endbr64
	movq	%rax, %rbp
.L149:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	%rbp, %rdi
.LEHB9:
	call	_Unwind_Resume@PLT
.LEHE9:
.L153:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2895:
	.section	.gcc_except_table
.LLSDA2895:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2895-.LLSDACSB2895
.LLSDACSB2895:
	.uleb128 .LEHB8-.LFB2895
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L150-.LFB2895
	.uleb128 0
	.uleb128 .LEHB9-.LFB2895
	.uleb128 .LEHE9-.LEHB9
	.uleb128 0
	.uleb128 0
.LLSDACSE2895:
	.text
	.size	_ZN4NodeC2ERSt6vectorIfSaIfEEii, .-_ZN4NodeC2ERSt6vectorIfSaIfEEii
	.globl	_ZN4NodeC1ERSt6vectorIfSaIfEEii
	.set	_ZN4NodeC1ERSt6vectorIfSaIfEEii,_ZN4NodeC2ERSt6vectorIfSaIfEEii
	.align 2
	.globl	_ZN5LayerC2ERSt6vectorIfSaIfEEiif
	.type	_ZN5LayerC2ERSt6vectorIfSaIfEEiif, @function
_ZN5LayerC2ERSt6vectorIfSaIfEEiif:
.LFB2917:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2917
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%ecx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rsi, 8(%rsp)
	leaq	16(%rsp), %r15
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movss	%xmm0, 24(%rdi)
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
.L155:
	cmpl	%r13d, %r12d
	jge	.L166
	movl	$40, %edi
.LEHB10:
	call	_Znwm@PLT
.LEHE10:
	movq	8(%rsp), %rsi
	movl	%r14d, %ecx
	movl	%r12d, %edx
	movq	%rax, %rdi
	movq	%rax, %rbp
.LEHB11:
	call	_ZN4NodeC1ERSt6vectorIfSaIfEEii
.LEHE11:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	movq	%rbp, 16(%rsp)
.LEHB12:
	call	_ZNSt6vectorIP4NodeSaIS1_EE9push_backERKS1_
.LEHE12:
	incl	%r12d
	jmp	.L155
.L162:
	endbr64
	movq	%rax, %r12
.L157:
	movl	$40, %esi
	movq	%rbp, %rdi
	call	_ZdlPvm@PLT
	jmp	.L158
.L161:
	endbr64
	movq	%rax, %r12
.L158:
	movq	%rbx, %rdi
	call	_ZNSt6vectorIP4NodeSaIS1_EED1Ev
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L165
	movq	%r12, %rdi
.LEHB13:
	call	_Unwind_Resume@PLT
.LEHE13:
.L166:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L160
.L165:
	call	__stack_chk_fail@PLT
.L160:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2917:
	.section	.gcc_except_table
.LLSDA2917:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2917-.LLSDACSB2917
.LLSDACSB2917:
	.uleb128 .LEHB10-.LFB2917
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L161-.LFB2917
	.uleb128 0
	.uleb128 .LEHB11-.LFB2917
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L162-.LFB2917
	.uleb128 0
	.uleb128 .LEHB12-.LFB2917
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L161-.LFB2917
	.uleb128 0
	.uleb128 .LEHB13-.LFB2917
	.uleb128 .LEHE13-.LEHB13
	.uleb128 0
	.uleb128 0
.LLSDACSE2917:
	.text
	.size	_ZN5LayerC2ERSt6vectorIfSaIfEEiif, .-_ZN5LayerC2ERSt6vectorIfSaIfEEiif
	.globl	_ZN5LayerC1ERSt6vectorIfSaIfEEiif
	.set	_ZN5LayerC1ERSt6vectorIfSaIfEEiif,_ZN5LayerC2ERSt6vectorIfSaIfEEiif
	.align 2
	.globl	_ZN5Layer7getGradERSt6vectorIfSaIfEE
	.type	_ZN5Layer7getGradERSt6vectorIfSaIfEE, @function
_ZN5Layer7getGradERSt6vectorIfSaIfEE:
.LFB2925:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2925
	endbr64
	movabsq	$2305843009213693950, %rdx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	8(%rdi), %rbx
	subq	(%rdi), %rbx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	sarq	$3, %rbx
	xorl	%eax, %eax
	movq	%rax, 72(%rsp)
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rax, 96(%rsp)
	movq	%rax, 104(%rsp)
	movq	%rax, 112(%rsp)
	movslq	%ebx, %rax
	cmpq	%rax, %rdx
	jb	.L168
	salq	$2, %rax
	movq	%rdi, %rbp
	movq	%rsi, %r15
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB14:
	call	_Znam@PLT
	movq	(%rsp), %rsi
	leaq	24(%rsp), %rdi
	movq	%rax, %r12
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	jmp	.L190
.L168:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L187
	call	__cxa_throw_bad_array_new_length@PLT
.L190:
	movq	(%rsp), %rsi
	leaq	32(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	(%rsp), %rsi
	leaq	40(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	leaq	72(%rsp), %rax
	movl	%ebx, %r14d
	xorl	%r13d, %r13d
	movq	%rax, 8(%rsp)
.L171:
	cmpl	%r13d, %r14d
	jle	.L191
	movq	0(%rbp), %rax
	movq	8(%rsp), %rdi
	movq	(%rax,%r13,8), %rsi
	addq	$28, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	movq	0(%rbp), %rax
	movq	(%r15), %rdx
	leaq	60(%rsp), %rsi
	leaq	96(%rsp), %rdi
	movq	(%rax,%r13,8), %rax
	movss	(%rdx,%r13,4), %xmm0
	subss	24(%rax), %xmm0
	movss	%xmm0, 60(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	incq	%r13
	jmp	.L171
.L191:
	movq	(%rsp), %rcx
	movq	96(%rsp), %r13
	movq	%r12, %rdi
	movq	%rcx, %rdx
	movq	%r13, %rsi
	call	__memcpy_chk@PLT
	movq	(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$1, %ecx
	movq	24(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	40(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movl	%ebx, 60(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 56(%rsp)
	movq	%rdi, 64(%rsp)
	movl	68(%rsp), %ecx
	movq	60(%rsp), %rdx
	movq	%rdi, 48(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	40(%rsp), %rsi
	testl	%eax, %eax
	jne	.L173
	movss	24(%rbp), %xmm0
	movq	24(%rsp), %rdi
	call	_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f
.L173:
	movq	(%rsp), %rdx
	movq	40(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	xorl	%eax, %eax
.L174:
	cmpl	%eax, %r14d
	jle	.L192
	movq	0(%rbp), %rdx
	movss	(%r12,%rax,4), %xmm0
	movq	(%rdx,%rax,8), %rdx
	incq	%rax
	movss	%xmm0, 32(%rdx)
	jmp	.L174
.L192:
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
.LEHE14:
	movl	$4, %esi
	movq	%r12, %rdi
	call	_ZdlPvm@PLT
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
.L176:
	cmpl	%eax, %r14d
	jle	.L193
	movss	0(%r13,%rax,4), %xmm1
	incq	%rax
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm0
	jmp	.L176
.L193:
	cvtsi2ssl	%ebx, %xmm1
	leaq	96(%rsp), %rdi
	divss	%xmm1, %xmm0
	movss	%xmm0, (%rsp)
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movss	(%rsp), %xmm0
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L180
	jmp	.L187
.L183:
	endbr64
	movq	%rax, %rbx
.L178:
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L187
	movq	%rbx, %rdi
.LEHB15:
	call	_Unwind_Resume@PLT
.LEHE15:
.L187:
	call	__stack_chk_fail@PLT
.L180:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2925:
	.section	.gcc_except_table
.LLSDA2925:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2925-.LLSDACSB2925
.LLSDACSB2925:
	.uleb128 .LEHB14-.LFB2925
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L183-.LFB2925
	.uleb128 0
	.uleb128 .LEHB15-.LFB2925
	.uleb128 .LEHE15-.LEHB15
	.uleb128 0
	.uleb128 0
.LLSDACSE2925:
	.text
	.size	_ZN5Layer7getGradERSt6vectorIfSaIfEE, .-_ZN5Layer7getGradERSt6vectorIfSaIfEE
	.align 2
	.globl	_ZN5Layer11learnWeightERS_f
	.type	_ZN5Layer11learnWeightERS_f, @function
_ZN5Layer11learnWeightERS_f:
.LFB2926:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2926
	endbr64
	movabsq	$2305843009213693950, %rdx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	8(%rsi), %rbx
	subq	(%rsi), %rbx
	sarq	$3, %rbx
	movss	%xmm0, 44(%rsp)
	movq	8(%rdi), %r13
	subq	(%rdi), %r13
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	movl	%ebx, %r15d
	xorl	%eax, %eax
	incl	%ebx
	sarq	$3, %r13
	movq	%rax, 104(%rsp)
	movq	%rax, 112(%rsp)
	movq	%rax, 120(%rsp)
	movq	%rax, 128(%rsp)
	movq	%rax, 136(%rsp)
	movq	%rax, 144(%rsp)
	movl	%ebx, %eax
	imull	%r13d, %eax
	movl	%r13d, 40(%rsp)
	cltq
	cmpq	%rax, %rdx
	jb	.L195
	salq	$2, %rax
	movq	%rdi, %rbp
	movq	%rsi, %r12
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB16:
	call	_Znam@PLT
	movq	%rax, %r14
	movslq	%ebx, %rax
	leaq	56(%rsp), %rdi
	movl	%ebx, 80(%rsp)
	salq	$2, %rax
	movl	%r13d, 84(%rsp)
	movq	%rax, %rsi
	movl	$1, 88(%rsp)
	movq	%rax, 16(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	jmp	.L219
.L195:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L216
	call	__cxa_throw_bad_array_new_length@PLT
.L219:
	movslq	%r13d, %r13
	leaq	64(%rsp), %rdi
	leaq	0(,%r13,4), %rax
	movq	%rax, %rsi
	movq	%rax, 24(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	8(%rsp), %rsi
	leaq	72(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	leaq	104(%rsp), %rax
	leaq	92(%rsp), %rsi
	movl	$0x3f800000, 92(%rsp)
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	xorl	%r13d, %r13d
.L198:
	cmpl	%r13d, %r15d
	jle	.L220
	movq	(%r12), %rax
	movq	32(%rsp), %rdi
	movq	(%rax,%r13,8), %rsi
	addq	$24, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	incq	%r13
	jmp	.L198
.L220:
	movq	16(%rsp), %rdx
	movq	104(%rsp), %rsi
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	128(%rsp), %rax
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, 32(%rsp)
.L200:
	cmpl	%r13d, 40(%rsp)
	jle	.L221
	movq	0(%rbp), %rax
	movq	8(%rsp), %rcx
	leaq	(%r14,%r12), %rdi
	cmpq	%r12, 8(%rsp)
	movq	16(%rsp), %rdx
	leaq	(%rax,%r13,8), %r15
	cmovb	%r12, %rcx
	movq	(%r15), %rax
	subq	%r12, %rcx
	movq	(%rax), %rsi
	call	__memcpy_chk@PLT
	movq	(%r15), %rsi
	movq	32(%rsp), %rdi
	addq	$32, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	movq	16(%rsp), %rax
	incq	%r13
	addq	%rax, %r12
	jmp	.L200
.L221:
	movq	8(%rsp), %rdx
	movq	72(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	call	cudaMemcpy@PLT
	movq	24(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movq	128(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	88(%rsp), %ecx
	movq	80(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 100(%rsp)
	movq	%rdi, 92(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	72(%rsp), %rdx
	testl	%eax, %eax
	jne	.L202
	movss	44(%rsp), %xmm0
	movq	64(%rsp), %rsi
	movl	%ebx, %ecx
	movq	56(%rsp), %rdi
	call	_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi
.L202:
	movq	8(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$2, %ecx
	movq	%r14, %rdi
	call	cudaMemcpy@PLT
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.L203:
	cmpl	%edx, 40(%rsp)
	jle	.L205
	movslq	%ecx, %rax
	leaq	0(,%rdx,8), %rdi
	leaq	(%r14,%rax,4), %rsi
	xorl	%eax, %eax
.L206:
	cmpl	%eax, %ebx
	jle	.L222
	movq	0(%rbp), %r8
	movss	(%rsi,%rax,4), %xmm0
	movq	(%r8,%rdi), %r8
	movq	(%r8), %r8
	movss	%xmm0, (%r8,%rax,4)
	incq	%rax
	jmp	.L206
.L222:
	incq	%rdx
	addl	%ebx, %ecx
	jmp	.L203
.L205:
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
.LEHE16:
	movl	$4, %esi
	movq	%r14, %rdi
	call	_ZdlPvm@PLT
	leaq	128(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	104(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L209
	jmp	.L216
.L212:
	endbr64
	movq	%rax, %rbx
.L207:
	leaq	128(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	104(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L216
	movq	%rbx, %rdi
.LEHB17:
	call	_Unwind_Resume@PLT
.LEHE17:
.L216:
	call	__stack_chk_fail@PLT
.L209:
	addq	$168, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2926:
	.section	.gcc_except_table
.LLSDA2926:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2926-.LLSDACSB2926
.LLSDACSB2926:
	.uleb128 .LEHB16-.LFB2926
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L212-.LFB2926
	.uleb128 0
	.uleb128 .LEHB17-.LFB2926
	.uleb128 .LEHE17-.LEHB17
	.uleb128 0
	.uleb128 0
.LLSDACSE2926:
	.text
	.size	_ZN5Layer11learnWeightERS_f, .-_ZN5Layer11learnWeightERS_f
	.section	.text._ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_,"axG",@progbits,_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_,comdat
	.weak	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	.type	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_, @function
_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_:
.LFB3290:
	.cfi_startproc
	endbr64
	subq	%rdi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmpq	$4, %rsi
	jle	.L224
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L225
.L224:
	jne	.L225
	movss	(%rdi), %xmm0
	movss	%xmm0, (%rdx)
.L225:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3290:
	.size	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_, .-_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	.section	.text._ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_,"axG",@progbits,_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_,comdat
	.weak	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	.type	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_, @function
_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_:
.LFB3292:
	.cfi_startproc
	endbr64
	subq	%rdi, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	cmpq	$4, %rsi
	jle	.L228
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	%rcx, %rdi
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L229
.L228:
	jne	.L229
	movss	(%rdi), %xmm0
	movss	%xmm0, (%rdx)
.L229:
	leaq	(%rcx,%rbx), %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3292:
	.size	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_, .-_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	.section	.text._ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE,"axG",@progbits,_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE
	.type	_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE, @function
_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE:
.LFB3143:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	pushq	%rcx
	.cfi_def_cfa_offset 32
	movq	8(%rdi), %rsi
	leaq	4(%rbx), %rdi
	cmpq	%rsi, %rdi
	je	.L232
	movq	%rbx, %rdx
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
.L232:
	subq	$4, 8(%rbp)
	movq	%rbx, %rax
	popq	%rdx
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3143:
	.size	_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE, .-_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE
	.text
	.align 2
	.globl	_ZN5Layer11learnWeightERSt6vectorIfSaIfEEf
	.type	_ZN5Layer11learnWeightERSt6vectorIfSaIfEEf, @function
_ZN5Layer11learnWeightERSt6vectorIfSaIfEEf:
.LFB2927:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2927
	endbr64
	movabsq	$2305843009213693950, %rdx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	8(%rsi), %rbx
	subq	(%rsi), %rbx
	movss	%xmm0, 28(%rsp)
	sarq	$2, %rbx
	movq	8(%rdi), %r14
	subq	(%rdi), %r14
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	incl	%ebx
	xorl	%eax, %eax
	sarq	$3, %r14
	movq	%rax, 96(%rsp)
	movq	%rax, 104(%rsp)
	movq	%rax, 112(%rsp)
	movl	%ebx, %eax
	imull	%r14d, %eax
	movl	%r14d, 24(%rsp)
	cltq
	cmpq	%rax, %rdx
	jb	.L235
	salq	$2, %rax
	movq	%rdi, %r13
	movq	%rsi, %rbp
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB18:
	call	_Znam@PLT
	movq	%rax, %r12
	movslq	%ebx, %rax
	leaq	48(%rsp), %rdi
	movl	%ebx, 72(%rsp)
	salq	$2, %rax
	movl	%r14d, 76(%rsp)
	movq	%rax, %rsi
	movl	$1, 80(%rsp)
	movq	%rax, 8(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	jmp	.L257
.L235:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L254
	call	__cxa_throw_bad_array_new_length@PLT
.L257:
	movslq	%r14d, %r14
	leaq	56(%rsp), %rdi
	leaq	0(,%r14,4), %rax
	movq	%rax, %rsi
	movq	%rax, 16(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	(%rsp), %rsi
	leaq	64(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	0(%rbp), %rsi
	leaq	84(%rsp), %rdx
	movq	%rbp, %rdi
	movl	$0x3f800000, 84(%rsp)
	call	_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf
	movq	8(%rsp), %rdx
	movq	0(%rbp), %rsi
	movl	$1, %ecx
	movq	48(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	96(%rsp), %rax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rax, 32(%rsp)
.L238:
	cmpl	%r15d, 24(%rsp)
	jle	.L258
	movq	0(%r13), %rax
	movq	(%rsp), %rcx
	leaq	(%r12,%r14), %rdi
	cmpq	%r14, (%rsp)
	movq	8(%rsp), %rdx
	leaq	(%rax,%r15,8), %r8
	cmovb	%r14, %rcx
	movq	(%r8), %rax
	movq	%r8, 40(%rsp)
	subq	%r14, %rcx
	movq	(%rax), %rsi
	call	__memcpy_chk@PLT
	movq	40(%rsp), %r8
	movq	32(%rsp), %rdi
	movq	(%r8), %rsi
	addq	$32, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	movq	8(%rsp), %rax
	incq	%r15
	addq	%rax, %r14
	jmp	.L238
.L258:
	movq	(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdx
	movq	96(%rsp), %rsi
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	80(%rsp), %ecx
	movq	72(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 92(%rsp)
	movq	%rdi, 84(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	64(%rsp), %rdx
	testl	%eax, %eax
	jne	.L240
	movss	28(%rsp), %xmm0
	movq	56(%rsp), %rsi
	movl	%ebx, %ecx
	movq	48(%rsp), %rdi
	call	_Z34__device_stub__Z9nodeLearnPfS_S_fiPfS_S_fi
.L240:
	movq	(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.L241:
	cmpl	%edx, 24(%rsp)
	jle	.L243
	movslq	%ecx, %rax
	leaq	0(,%rdx,8), %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
.L244:
	cmpl	%eax, %ebx
	jle	.L259
	movq	0(%r13), %r8
	movss	(%rsi,%rax,4), %xmm0
	movq	(%r8,%rdi), %r8
	movq	(%r8), %r8
	movss	%xmm0, (%r8,%rax,4)
	incq	%rax
	jmp	.L244
.L259:
	incq	%rdx
	addl	%ebx, %ecx
	jmp	.L241
.L243:
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
.LEHE18:
	movl	$4, %esi
	movq	%r12, %rdi
	call	_ZdlPvm@PLT
	movq	0(%rbp), %rsi
	movq	%rbp, %rdi
	call	_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L247
	jmp	.L254
.L250:
	endbr64
	movq	%rax, %rbx
.L245:
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L254
	movq	%rbx, %rdi
.LEHB19:
	call	_Unwind_Resume@PLT
.LEHE19:
.L254:
	call	__stack_chk_fail@PLT
.L247:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2927:
	.section	.gcc_except_table
.LLSDA2927:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2927-.LLSDACSB2927
.LLSDACSB2927:
	.uleb128 .LEHB18-.LFB2927
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L250-.LFB2927
	.uleb128 0
	.uleb128 .LEHB19-.LFB2927
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
.LLSDACSE2927:
	.text
	.size	_ZN5Layer11learnWeightERSt6vectorIfSaIfEEf, .-_ZN5Layer11learnWeightERSt6vectorIfSaIfEEf
	.section	.rodata._ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_.str1.1,"aMS",@progbits,1
.LC10:
	.string	"vector::_M_range_insert"
	.section	.text._ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_,"axG",@progbits,_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_,comdat
	.align 2
	.weak	_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_
	.type	_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_, @function
_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_:
.LFB3052:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	(%rdi), %r14
	movq	%rcx, 8(%rsp)
	subq	%r14, %rax
	movq	%rax, 24(%rsp)
	cmpq	%rdx, %rcx
	je	.L261
	movq	%rcx, %r15
	movq	8(%rdi), %rbp
	movq	%rsi, %rbx
	movq	%rdx, %r12
	subq	%rdx, %r15
	movq	%r15, %rax
	sarq	$2, %rax
	movq	%rax, 16(%rsp)
	movq	16(%rdi), %rax
	subq	%rbp, %rax
	cmpq	%r15, %rax
	jb	.L262
	movq	%rbp, %r14
	subq	%rsi, %r14
	cmpq	%r14, %r15
	jnb	.L263
	movq	%rbp, %r14
	movq	%rbp, %rdx
	movq	%rbp, %rsi
	subq	%r15, %r14
	movq	%r14, %rdi
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	movq	%r14, %rdx
	addq	%r15, 8(%r13)
	subq	%rbx, %rdx
	cmpq	$4, %rdx
	jle	.L264
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	subq	%rdx, %rdi
	call	memmove@PLT
	jmp	.L265
.L264:
	jne	.L265
	movss	(%rbx), %xmm0
	movss	%xmm0, -4(%rbp)
.L265:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdx
	jmp	.L271
.L263:
	leaq	(%rdx,%r14), %r15
	movq	8(%rsp), %rsi
	movq	%rbp, %rdx
	movq	%r15, %rdi
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	movq	16(%rsp), %rdx
	movq	%r14, %rax
	movq	%rbp, %rsi
	sarq	$2, %rax
	movq	%rbx, %rdi
	subq	%rax, %rdx
	movq	8(%r13), %rax
	leaq	(%rax,%rdx,4), %rdx
	movq	%rdx, 8(%r13)
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	addq	%r14, 8(%r13)
	movq	%rbx, %rdx
	movq	%r15, %rsi
.L271:
	movq	%r12, %rdi
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	jmp	.L261
.L262:
	movq	16(%rsp), %rsi
	leaq	.LC10(%rip), %rdx
	call	_ZNKSt6vectorIfSaIfEE12_M_check_lenEmPKc
	movq	%rax, %rdi
	movq	%rax, %r15
	call	_ZNSt12_Vector_baseIfSaIfEE11_M_allocateEm.isra.0
	movq	%rbx, %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movq	%rax, 16(%rsp)
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	call	_ZNSt11__copy_moveILb0ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rdx
	call	_ZNSt11__copy_moveILb1ELb1ESt26random_access_iterator_tagE8__copy_mIffEEPT0_PT_S6_S4_
	movq	%rax, %rbx
	testq	%r14, %r14
	je	.L266
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L266:
	movq	16(%rsp), %rax
	movq	%rbx, 8(%r13)
	movq	%rax, 0(%r13)
	leaq	(%rax,%r15,4), %rax
	movq	%rax, 16(%r13)
.L261:
	movq	24(%rsp), %rax
	addq	0(%r13), %rax
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3052:
	.size	_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_, .-_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_
	.text
	.align 2
	.globl	_ZN5Layer10forwardCalERSt6vectorIfSaIfEE
	.type	_ZN5Layer10forwardCalERSt6vectorIfSaIfEE, @function
_ZN5Layer10forwardCalERSt6vectorIfSaIfEE:
.LFB2922:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2922
	endbr64
	movabsq	$2305843009213693950, %rdx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	8(%rdi), %rbp
	subq	(%rdi), %rbp
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	sarq	$3, %rbp
	xorl	%eax, %eax
	movq	8(%rsi), %r12
	subq	(%rsi), %r12
	movq	%rax, 96(%rsp)
	movq	%rax, 104(%rsp)
	sarq	$2, %r12
	movq	%rax, 112(%rsp)
	movslq	%ebp, %rax
	incl	%r12d
	movl	%ebp, 28(%rsp)
	cmpq	%rax, %rdx
	jb	.L273
	salq	$2, %rax
	movq	%rdi, %r13
	movq	%rsi, %rbx
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB20:
	call	_Znam@PLT
	movq	%rax, %r14
	movslq	%r12d, %rax
	leaq	48(%rsp), %rdi
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 16(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	jmp	.L298
.L273:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L295
	call	__cxa_throw_bad_array_new_length@PLT
.L298:
	movl	%r12d, %eax
	leaq	56(%rsp), %rdi
	imull	%ebp, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	8(%rsp), %rsi
	leaq	64(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	(%rbx), %rsi
	leaq	84(%rsp), %rdx
	movq	%rbx, %rdi
	movl	$0x3f800000, 84(%rsp)
	call	_ZNSt6vectorIfSaIfEE14_M_insert_rvalEN9__gnu_cxx17__normal_iteratorIPKfS1_EEOf
	movq	16(%rsp), %rdx
	movq	(%rbx), %rsi
	movl	$1, %ecx
	movq	48(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	96(%rsp), %rax
	xorl	%r15d, %r15d
	movq	%rax, 40(%rsp)
.L276:
	cmpl	%r15d, 28(%rsp)
	jle	.L299
	movq	0(%r13), %rax
	movq	104(%rsp), %rsi
	movq	40(%rsp), %rdi
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %rcx
	movq	(%rax), %rdx
	call	_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_
	incq	%r15
	jmp	.L276
.L299:
	movq	32(%rsp), %rdx
	movq	96(%rsp), %rsi
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	call	cudaMemcpy@PLT
	movl	%r12d, 84(%rsp)
	movq	16(%rsp), %r8
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movl	92(%rsp), %ecx
	movq	%rax, 76(%rsp)
	movq	84(%rsp), %rdx
	movl	%ebp, 72(%rsp)
	movl	80(%rsp), %esi
	movq	72(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	movq	64(%rsp), %rdx
	testl	%eax, %eax
	jne	.L278
	movq	56(%rsp), %rsi
	movq	48(%rsp), %rdi
	call	_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_
.L278:
	movq	8(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	$2, %ecx
	movq	%r14, %rdi
	call	cudaMemcpy@PLT
	xorl	%eax, %eax
.L279:
	cmpl	%eax, 28(%rsp)
	jle	.L300
	movq	0(%r13), %rdx
	movss	(%r14,%rax,4), %xmm0
	movq	(%rdx,%rax,8), %rdx
	incq	%rax
	movss	%xmm0, 28(%rdx)
	jmp	.L279
.L300:
	movl	%ebp, 84(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 80(%rsp)
	movq	%rdi, 88(%rsp)
	movl	92(%rsp), %ecx
	movq	84(%rsp), %rdx
	movq	%rdi, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	64(%rsp), %rdi
	testl	%eax, %eax
	jne	.L281
	movss	24(%r13), %xmm0
	call	_Z27__device_stub__Z7nodeLogPffPff
.L281:
	movq	8(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	$2, %ecx
	movq	%r14, %rdi
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
.LEHE20:
	xorl	%eax, %eax
.L282:
	cmpl	%eax, 28(%rsp)
	jle	.L301
	movq	0(%r13), %rdx
	movss	(%r14,%rax,4), %xmm0
	movq	(%rdx,%rax,8), %rdx
	incq	%rax
	movss	%xmm0, 24(%rdx)
	jmp	.L282
.L301:
	movl	$4, %esi
	movq	%r14, %rdi
	call	_ZdlPvm@PLT
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	call	_ZNSt6vectorIfSaIfEE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPfS1_EE
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L286
	jmp	.L295
.L290:
	endbr64
	movq	%rax, %rbx
.L284:
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L295
	movq	%rbx, %rdi
.LEHB21:
	call	_Unwind_Resume@PLT
.LEHE21:
.L295:
	call	__stack_chk_fail@PLT
.L286:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2922:
	.section	.gcc_except_table
.LLSDA2922:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2922-.LLSDACSB2922
.LLSDACSB2922:
	.uleb128 .LEHB20-.LFB2922
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L290-.LFB2922
	.uleb128 0
	.uleb128 .LEHB21-.LFB2922
	.uleb128 .LEHE21-.LEHB21
	.uleb128 0
	.uleb128 0
.LLSDACSE2922:
	.text
	.size	_ZN5Layer10forwardCalERSt6vectorIfSaIfEE, .-_ZN5Layer10forwardCalERSt6vectorIfSaIfEE
	.align 2
	.globl	_ZN5Layer10forwardCalERS_
	.type	_ZN5Layer10forwardCalERS_, @function
_ZN5Layer10forwardCalERS_:
.LFB2923:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2923
	endbr64
	movabsq	$2305843009213693950, %rdx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	8(%rdi), %rbp
	subq	(%rdi), %rbp
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	sarq	$3, %rbp
	xorl	%eax, %eax
	movq	8(%rsi), %rbx
	movq	%rax, 104(%rsp)
	subq	(%rsi), %rbx
	leaq	104(%rsp), %rcx
	movq	%rax, 112(%rsp)
	sarq	$3, %rbx
	movq	%rax, 120(%rsp)
	movq	%rax, 128(%rsp)
	movq	%rax, 136(%rsp)
	movq	%rax, 144(%rsp)
	movslq	%ebp, %rax
	cmpq	%rax, %rdx
	movl	%ebx, 44(%rsp)
	movl	%ebp, 40(%rsp)
	movq	%rcx, 16(%rsp)
	jb	.L303
	salq	$2, %rax
	movq	%rdi, %r12
	movq	%rsi, %r14
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB22:
	call	_Znam@PLT
	incl	%ebx
	movq	%rax, %r13
	leaq	56(%rsp), %rdi
	movslq	%ebx, %rax
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 24(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	jmp	.L330
.L303:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L327
	call	__cxa_throw_bad_array_new_length@PLT
.L330:
	movl	%ebx, %eax
	leaq	64(%rsp), %rdi
	imull	%ebp, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	8(%rsp), %rsi
	leaq	72(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	16(%rsp), %rdi
	leaq	92(%rsp), %rsi
	movl	$0x3f800000, 92(%rsp)
	call	_ZNSt6vectorIfSaIfEE12emplace_backIJfEEERfDpOT_.isra.0
	xorl	%r15d, %r15d
.L306:
	cmpl	%r15d, 44(%rsp)
	jle	.L331
	movq	(%r14), %rax
	movq	16(%rsp), %rdi
	movq	(%rax,%r15,8), %rsi
	addq	$24, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	incq	%r15
	jmp	.L306
.L331:
	movq	24(%rsp), %rdx
	movq	104(%rsp), %rsi
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	call	cudaMemcpy@PLT
	xorl	%r14d, %r14d
	leaq	128(%rsp), %r15
.L308:
	cmpl	%r14d, 40(%rsp)
	jle	.L332
	movq	(%r12), %rax
	movq	136(%rsp), %rsi
	movq	%r15, %rdi
	movq	(%rax,%r14,8), %rax
	movq	8(%rax), %rcx
	movq	(%rax), %rdx
	call	_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_
	incq	%r14
	jmp	.L308
.L332:
	movq	32(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movq	128(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%ebx, 92(%rsp)
	movq	24(%rsp), %r8
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movl	100(%rsp), %ecx
	movq	%rax, 84(%rsp)
	movq	92(%rsp), %rdx
	movl	%ebp, 80(%rsp)
	movl	88(%rsp), %esi
	movq	80(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	movq	72(%rsp), %rdx
	testl	%eax, %eax
	jne	.L310
	movq	64(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z30__device_stub__Z7nodeCalPfS_S_PfS_S_
.L310:
	movq	8(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$2, %ecx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	xorl	%eax, %eax
.L311:
	cmpl	%eax, 40(%rsp)
	jle	.L333
	movq	(%r12), %rdx
	movss	0(%r13,%rax,4), %xmm0
	movq	(%rdx,%rax,8), %rdx
	incq	%rax
	movss	%xmm0, 28(%rdx)
	jmp	.L311
.L333:
	movl	%ebp, 92(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 88(%rsp)
	movq	%rdi, 96(%rsp)
	movl	100(%rsp), %ecx
	movq	92(%rsp), %rdx
	movq	%rdi, 80(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	72(%rsp), %rdi
	testl	%eax, %eax
	jne	.L313
	movss	24(%r12), %xmm0
	call	_Z27__device_stub__Z7nodeLogPffPff
.L313:
	movq	8(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$2, %ecx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
.LEHE22:
	xorl	%eax, %eax
.L314:
	cmpl	%eax, 40(%rsp)
	jle	.L334
	movq	(%r12), %rdx
	movss	0(%r13,%rax,4), %xmm0
	movq	(%rdx,%rax,8), %rdx
	incq	%rax
	movss	%xmm0, 24(%rdx)
	jmp	.L314
.L334:
	movl	$4, %esi
	movq	%r13, %rdi
	call	_ZdlPvm@PLT
	leaq	128(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L318
	jmp	.L327
.L322:
	endbr64
	movq	%rax, %rbx
.L316:
	leaq	128(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L327
	movq	%rbx, %rdi
.LEHB23:
	call	_Unwind_Resume@PLT
.LEHE23:
.L327:
	call	__stack_chk_fail@PLT
.L318:
	addq	$168, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2923:
	.section	.gcc_except_table
.LLSDA2923:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2923-.LLSDACSB2923
.LLSDACSB2923:
	.uleb128 .LEHB22-.LFB2923
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L322-.LFB2923
	.uleb128 0
	.uleb128 .LEHB23-.LFB2923
	.uleb128 .LEHE23-.LEHB23
	.uleb128 0
	.uleb128 0
.LLSDACSE2923:
	.text
	.size	_ZN5Layer10forwardCalERS_, .-_ZN5Layer10forwardCalERS_
	.align 2
	.globl	_ZN5Layer7getGradERS_
	.type	_ZN5Layer7getGradERS_, @function
_ZN5Layer7getGradERS_:
.LFB2924:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2924
	endbr64
	movabsq	$2305843009213693950, %rdx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	8(%rdi), %rbx
	subq	(%rdi), %rbx
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	sarq	$3, %rbx
	xorl	%eax, %eax
	movq	8(%rsi), %rbp
	subq	(%rsi), %rbp
	movq	%rax, 112(%rsp)
	movq	%rax, 120(%rsp)
	sarq	$3, %rbp
	movq	%rax, 128(%rsp)
	movq	%rax, 136(%rsp)
	movq	%rax, 144(%rsp)
	movq	%rax, 152(%rsp)
	movq	%rax, 160(%rsp)
	movq	%rax, 168(%rsp)
	movq	%rax, 176(%rsp)
	movslq	%ebx, %rax
	movl	%ebx, 32(%rsp)
	movl	%ebp, 36(%rsp)
	cmpq	%rax, %rdx
	jb	.L336
	salq	$2, %rax
	movq	%rdi, %r12
	movq	%rsi, %r13
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB24:
	call	_Znam@PLT
	movq	8(%rsp), %rsi
	leaq	56(%rsp), %rdi
	movq	%rax, %r15
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	jmp	.L361
.L336:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L358
	call	__cxa_throw_bad_array_new_length@PLT
.L361:
	movl	%ebp, %eax
	leaq	64(%rsp), %rdi
	imull	%ebx, %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 24(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movslq	%ebp, %rax
	leaq	72(%rsp), %rdi
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 16(%rsp)
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	movq	8(%rsp), %rsi
	leaq	80(%rsp), %rdi
	call	_Z10cudaMallocIfE9cudaErrorPPT_m.isra.0
	leaq	112(%rsp), %rax
	xorl	%r14d, %r14d
	movq	%rax, 40(%rsp)
.L339:
	cmpl	%r14d, 32(%rsp)
	jle	.L362
	movq	(%r12), %rax
	movq	40(%rsp), %rdi
	movq	(%rax,%r14,8), %rsi
	addq	$28, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	incq	%r14
	jmp	.L339
.L362:
	movq	8(%rsp), %rdx
	movq	112(%rsp), %rsi
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	call	cudaMemcpy@PLT
	leaq	160(%rsp), %rax
	xorl	%r14d, %r14d
	movq	%rax, 40(%rsp)
.L341:
	cmpl	%r14d, 36(%rsp)
	jle	.L363
	movq	0(%r13), %rax
	movq	40(%rsp), %rdi
	movq	(%rax,%r14,8), %rsi
	addq	$32, %rsi
	call	_ZNSt6vectorIfSaIfEE9push_backERKf
	movq	0(%r13), %rax
	movq	144(%rsp), %rsi
	leaq	136(%rsp), %rdi
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	addq	$4, %rdx
	call	_ZNSt6vectorIfSaIfEE6insertIN9__gnu_cxx17__normal_iteratorIPfS1_EEvEES6_NS4_IPKfS1_EET_SA_
	incq	%r14
	jmp	.L341
.L363:
	movq	16(%rsp), %rdx
	movq	72(%rsp), %rdi
	movl	$1, %ecx
	movq	160(%rsp), %rsi
	call	cudaMemcpy@PLT
	movq	24(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movq	136(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	%ebp, 100(%rsp)
	movq	16(%rsp), %r8
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rax
	movq	%rax, 104(%rsp)
	movl	108(%rsp), %ecx
	movq	%rax, 92(%rsp)
	movq	100(%rsp), %rdx
	movl	%ebx, 88(%rsp)
	movl	96(%rsp), %esi
	movq	88(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	movq	80(%rsp), %rdx
	testl	%eax, %eax
	jne	.L343
	movq	72(%rsp), %rsi
	movq	64(%rsp), %rdi
	call	_Z35__device_stub__Z11nodeGradCalPfS_S_PfS_S_
.L343:
	movq	8(%rsp), %rdx
	movq	80(%rsp), %rsi
	movl	$2, %ecx
	movq	%r15, %rdi
	call	cudaMemcpy@PLT
	movl	%ebx, 100(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 96(%rsp)
	movq	%rdi, 104(%rsp)
	movl	108(%rsp), %ecx
	movq	100(%rsp), %rdx
	movq	%rdi, 88(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	80(%rsp), %rsi
	testl	%eax, %eax
	jne	.L344
	movss	24(%r12), %xmm0
	movq	56(%rsp), %rdi
	call	_Z33__device_stub__Z10nodeDelLogPfS_fPfS_f
.L344:
	movq	8(%rsp), %rdx
	movq	80(%rsp), %rsi
	movl	$2, %ecx
	movq	%r15, %rdi
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
.LEHE24:
	xorl	%eax, %eax
.L345:
	cmpl	%eax, 32(%rsp)
	jle	.L364
	movq	(%r12), %rdx
	movss	(%r15,%rax,4), %xmm0
	movq	(%rdx,%rax,8), %rdx
	incq	%rax
	movss	%xmm0, 32(%rdx)
	jmp	.L345
.L364:
	movl	$4, %esi
	movq	%r15, %rdi
	call	_ZdlPvm@PLT
	leaq	160(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	136(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L349
	jmp	.L358
.L353:
	endbr64
	movq	%rax, %rbx
.L347:
	leaq	160(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	136(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorIfSaIfEED1Ev
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L358
	movq	%rbx, %rdi
.LEHB25:
	call	_Unwind_Resume@PLT
.LEHE25:
.L358:
	call	__stack_chk_fail@PLT
.L349:
	addq	$200, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2924:
	.section	.gcc_except_table
.LLSDA2924:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2924-.LLSDACSB2924
.LLSDACSB2924:
	.uleb128 .LEHB24-.LFB2924
	.uleb128 .LEHE24-.LEHB24
	.uleb128 .L353-.LFB2924
	.uleb128 0
	.uleb128 .LEHB25-.LFB2924
	.uleb128 .LEHE25-.LEHB25
	.uleb128 0
	.uleb128 0
.LLSDACSE2924:
	.text
	.size	_ZN5Layer7getGradERS_, .-_ZN5Layer7getGradERS_
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC8:
	.long	805306368
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#pragma once
#include <vector>
#include "hip/hip_runtime.h"

class Node {
public:
	Node();//first input: constant/offset = 0
	Node(int inputNum);//inputNum: nuber of input (first input: constant/offset = 0)
	Node(std::vector<float>& inputWeightList, int nodeIndex, int inputWeightLength);
	~Node();
	std::vector<float> inputWeightList;
	float output;
	float input;
	float localGrad;
};

class Layer {
public:
	Layer();
	Layer(int nodeListLength, int inputWeightLength, float sigmoidConst = 0.01);
	Layer(std::vector<float>& inputWeightList, int nodeListLength, int inputWeightLength, float sigmoidConst = 0.01);
	~Layer();
	std::vector<Node*> nodeList;
	float sigmoidConst;
	void forwardCal(Layer& bLayer);
	void forwardCal(std::vector<float>& inputList);
	void getGrad(Layer& fLayer);
	float getGrad(std::vector<float>& answerList); // output: MSE
	void learnWeight(Layer& bLayer, float learningFactor);
	void learnWeight(std::vector<float>& inputList, float learningFactor);
};

	.text
	.file	"nne.hip"
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
