深度学习与PyTorch入门实战 - 42. ResNet
0 码力 | 12 页 | 977.96 KB | 1 年前3Oracle VM VirtualBox 5.2.42 User Manual
manually uninstall VirtualBox, simply undo the steps in the manual installation in reverse order. 42 2 Installation details 2.3.3.5 Automatic installation of Debian packages The Debian packages will setextradata "VM name" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "9852bf98-b83c-49db-a8de-182c42c7226b" DMI board information (type 2) VBoxManage setextradata "VM name" "VBoxInternal/Devices/pc Group 42, Inc. disclaim all warranties, expressed or implied, including, without limitation, the warranties of merchantability and of fitness for any purpose. The Contributing Authors and Group 42, Inc0 码力 | 387 页 | 4.27 MB | 1 年前3Oracle VM VirtualBox 6.1.42 User Manual
. . . . . . . . 41 2.3.2 The Oracle VM VirtualBox Kernel Modules . . . . . . . . . . . . . . . . 42 2.3.3 Performing the Installation . . . . . . . . . . . . . . . . . . . . . . . . . 43 2.3.4 The system is set up as described above and try running the following command, as root: rcvboxdrv setup 42 2 Installation Details 2.3.2.1 Kernel Modules and UEFI Secure Boot If you are running on a system appropriate Linux kernel headers, see chapter 2.3.2, The Oracle VM VirtualBox Kernel Modules, page 42. After correcting any problems, run the following command: sudo rcvboxdrv setup This will start a0 码力 | 410 页 | 4.77 MB | 1 年前3Forwarding References
f(const int* ptr); int i = 42; const int ci = 42; int make_int() { return 42; } f(i); // ??? f(ci); // ??? f(std::move(i)); // ??? f(std::move(ci)); // ??? f(42); // ??? f(make_int()); int* ptr); int i = 42; const int ci = 42; int make_int() { return 42; } f(i); // ERROR f(ci); // ERROR f(std::move(i)); // ERROR f(std::move(ci)); // ERROR f(42); // ERROR f(int* ptr); int i = 42; const int ci = 42; int make_int() { return 42; } f(&i); // ??? f(&ci) // ??? f(&std::move(i)); // ??? f(&std::move(ci)); // ??? f(&42); // ??0 码力 | 107 页 | 3.72 MB | 5 月前3Back To Basics Lifetime Management
for historical reasonsC++ is a value-based language by default BUT…int i = 42;int i = 42; i = 7;int i = 42; i = 7; { }int i = 42; i = 7; { } construction assignment destructionstd::string s = "initial"; default member initializerstruct Gadget { int i; Gadget(int i) : i(i) {} }; Gadget gadget(42); 42 std::cout << gadget.i << "\n"; custom constructorstruct Gadget { int i; Gadget(int i) 0; Gadget() = default; Gadget(int i) : i(i) {} }; Gadget gadget; 42 std::cout << gadget.i << "\n"; gadget = Gadget(42);int gadget_number = 0; struct Gadget { int i; Gadget() : i(++gadget_number)0 码力 | 66 页 | 8.43 MB | 5 月前3Taming the C++ Filter View
std::vectorcoll1{0, 8, 15, 47, 11, 42, 1}; std::set coll2{0, 8, 15, 47, 11, 42, 1}; print(coll1); print(coll2); Output: 0 8 15 47 11 42 1 0 1 8 11 15 42 47 C++20 template Nico << '\n'; } std::vector coll1{0, 8, 15, 47, 11, 42, 1}; std::set coll2{0, 8, 15, 47, 11, 42, 1}; Output: 0 8 15 47 11 42 1 0 1 8 11 15 42 47 C++20 ©2024 by josuttis.com 6 C++ C++20: Views elem << ' '; } std::cout << '\n'; } std::vector coll1{0, 8, 15, 47, 11, 42, 1}; std::set coll2{0, 8, 15, 47, 11, 42, 1}; print(coll1); print(coll2); print(std::views::take(coll1, 3)); // 0 码力 | 43 页 | 2.77 MB | 5 月前3Sender Patterns to Wrangle Concurrency in Embedded Devices
async::just(42, 17); 1 18just just_result_of just_error just_error_result_of just_stopped Sender Factories Functions that return senders. auto sndr = async::just_result_of( [] { return 42; }, senders and start the work. 22Composition auto comp = s1.schedule() | async::then([] { return 42; }) | async::continue_on(s2) | async::then([] (int i) { return std::to_string(i); }) ; 1 2 3 value_or(std::make_tuple(""_s)); 10 23Composition auto comp = s1.schedule() | async::then([] { return 42; }) | async::continue_on(s2) | async::then([] (int i) { return std::to_string(i); }) ; 1 2 30 码力 | 106 页 | 26.36 MB | 5 月前3Back to Basics Concepts
std::vectorcoll1; std::set coll2;std::unordered_set uset; add(coll1, 42); // OK add(coll2, 42); // ERROR: no push_back() C++98 Nico Josuttis C++ Concepts @cppcon 2024-09-18 2©2024 const T& val) { coll.insert(val); } std::vector coll1; std::set coll2; add(coll1, 42); add(coll2, 42); C++98 Overload resolution cares only for declarations (ignoring return types) // ERROR: const T& val) { coll.insert(val); } std::vector coll1; std::set coll2; add(coll1, 42); add(coll2, 42); Overload resolution prefers more specialized function C++20 Constraints formulated by 0 码力 | 23 页 | 2.14 MB | 5 月前3Modern C++ Error Handling
} return acc; } std::println("{}", parse_int("42") ); std::println("{}", parse_int("42x") ); std::println("{}", parse_int("x42") ); 42 42 0bool is_int(std::string_view number) { for(char else std::println("{} is not an int", str); } 42 is an int 42x is not an int x42 is not an int test("42"); test("42x"); test("x42"); [[nodiscard]]ParseStatus is_int(std::string_view number) break; } } test("42"); test("42x"); test("x42"); enum class ParseStatus { Numeric, StartsNumerically, NonNumeric }; 42 is an int 42x is not an int x42 is not an int [[nodiscard]]ParseStatus0 码力 | 66 页 | 36.65 MB | 5 月前3Reflection Is Not Contemplation
like to be able to define such metafunctions constexpr auto r = ^int; typename[:r:] x = 42; // Same as: int x = 42; typename[:^char:] c = '*'; // Same as: char c = '*';How to Generate a Property // Equivalent set_title(std::string s) { m_title = std::move(s); } }; constexpr auto r = ^int; typename[:r:] x = 42; // Same as: int x = 42; typename[:^char:] c = '*'; // Same as: char c = '*';Early Observation •We create identifiers fluidly translate strings to identifiers crucial constexpr auto r = ^int; typename[:r:] x = 42; // Same as: int x = 42; typename[:^char:] c = '*'; // Same as: char c = '*';Comparison of Splicing Models •The0 码力 | 45 页 | 2.45 MB | 5 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100