Skip to content

Instantly share code, notes, and snippets.

iter=2964, left=12036
15:44:07.561 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - slope = -5.5147811508504674E-5
15:44:08.108 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - Model score after step = 0.05344788357615471
15:44:08.108 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - Sufficient decrease (Wolfe cond.), exiting backtrack on iter 0: score=0.05344788357615471, scoreAtStart=0.05473032966256142
iter=3458, left=11542
15:44:45.642 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - slope = -1.7115466471295804E-4
15:44:46.161 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - Model score after step = 0.01445124950259924
15:44:46.161 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - Sufficient decrease (Wolfe cond.), exiting backtrack on iter 0: score=0.01445124950259924, scoreAtStart=0.016986511647701263
iter=3952, left=11048
15:45:26.446 [main] DEBUG o.d.o.solvers.BackTrackLineSearch - slope = -1.2548292579595E-4
21:12:44.056 [main] DEBUG org.nd4j.nativeblas.NativeOps - Number of threads used for linear algebra 8
21:12:44.063 [main] DEBUG org.nd4j.nativeblas.NativeOps - Number of threads used for linear algebra 8
21:12:44.106 [main] DEBUG org.reflections.Reflections - going to scan these urls:
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native/0.5.0/nd4j-native-0.5.0-windows-x86_64.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-context/0.5.0/nd4j-context-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native-api/0.5.0/nd4j-native-api-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-buffer/0.5.0/nd4j-buffer-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native/0.5.0/nd4j-native-0.5.0-linux-x86_64.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-api/0.5.0/nd4j-api-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native/0.5.0/nd4j-native-0.5.0.jar!/
21:20:26.609 [main] DEBUG org.nd4j.nativeblas.NativeOps - Number of threads used for linear algebra 8
21:20:26.614 [main] DEBUG org.nd4j.nativeblas.NativeOps - Number of threads used for linear algebra 8
21:20:26.650 [main] DEBUG org.reflections.Reflections - going to scan these urls:
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native/0.5.0/nd4j-native-0.5.0-windows-x86_64.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-context/0.5.0/nd4j-context-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native-api/0.5.0/nd4j-native-api-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-buffer/0.5.0/nd4j-buffer-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native/0.5.0/nd4j-native-0.5.0-linux-x86_64.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-api/0.5.0/nd4j-api-0.5.0.jar!/
jar:file:/home/user/.m2/repository/org/nd4j/nd4j-native/0.5.0/nd4j-native-0.5.0.jar!/
@ivanstepanovftw
ivanstepanovftw / main.cpp
Last active March 5, 2018 19:38
Should record audio from speakers. UPD: https://github.com/AshFTW/output-audio-stream
#include <cstdint>
#include <cstring>
#include <unistd.h>
#include <iostream>
#include <portaudio.h>
#include <cmath>
using namespace std;
#define LEN(n) sizeof(n)/sizeof(n[0])
@ivanstepanovftw
ivanstepanovftw / windows10qemu.sh
Created October 14, 2017 08:59 — forked from Manouchehri/windows10qemu.sh
Running Windows 10 in a UEFI enabled QEMU environment with KVM.
# Installing
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 2048 -cdrom ~/Downloads/Win10_English_x64.iso -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -drive file=~/Downloads/virtio-win-0.1.105.iso,index=1,media=cdrom
# Running
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 4096 -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -usbdevice tablet -rtc base=utc
@ivanstepanovftw
ivanstepanovftw / thread_pool.cc
Last active April 20, 2018 09:18
Короче, как правильно сделать метод wait()? Что бы все jobs были выполнены.
#include <mutex>
#include <deque>
#include <string>
#include <thread>
#include <condition_variable>
#include <atomic>
#include <functional>
#include <iostream>
#include <zconf.h>
cmake_minimum_required(VERSION 3.9)
project(threaded_handler)
set(CMAKE_CXX_STANDARD 17)
find_package(Boost)
link_directories(
${Boost_LIBRARY_DIRS}
)
cmake_minimum_required(VERSION 3.9)
project(threaded_handler)
set(CMAKE_CXX_STANDARD 17)
find_package(Boost)
link_directories(
${Boost_LIBRARY_DIRS}
)
/*
* Rewritten from https://github.com/scanmem/scanmem/blob/d77b1713e548f6e26e62a3e146f852813bbee6d9/targetmem.h
*/
#include <iostream>
#include <vector>
#include <cstring>
#include <chrono>
Address Source Line Assembly CPU Time: Total CPU Time: Self Instructions Retired: Total Instructions Retired: Self
0xa238 0 Block 1:
0xa238 245 sub %r15, %rax 0.106s 0.106s 1.9% 2,586,300,000
0xa23b 254 cmp $0x8, %rax 0.003s 0.003s 0.0% 37,000,000
0xa23f 254 jbe 0xa418 <Block 9> 0.001s 0.001s 0.0% 0
0xa245 0 Block 2:
0xa245 266 movq 0x30(%rsp), %rax 0.004s 0.004s 0.0% 44,400,000
0xa24a 266 mov $0xffffffff, %ecx 0s 0s 0.0% 11,100,000
0xa24f 266 movzxb (%rdx,%rax,1), %ebx 0.095s 0.095s 1.8% 2,430,900,000
0xa253 266 leaq 0x8(%rax), %rdi 0.005s 0.005s 0.1% 70,300,000