Skip to content

Instantly share code, notes, and snippets.

View xiaoniu-578fa6bff964d005's full-sized avatar

Zhengmian Hu xiaoniu-578fa6bff964d005

View GitHub Profile
@xiaoniu-578fa6bff964d005
xiaoniu-578fa6bff964d005 / main.rs
Created October 22, 2018 13:57
Is it possible to unchecked unwrap Option with safety?
mod approach5 {
mod variance {
use std::marker::PhantomData;
use std::fmt;
use std::hash::{Hash, Hasher};
use std::cmp::Ordering;
/// A marker for forcing T to be considered invariant.
// *mut T is invariant in T
Compiling try_tch v0.1.0 (/home/xiaoniu/workspace/learn/tch-rs/try_tch)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/xiaoniu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.1j13cj79p9lts9ct.rcgu.o" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.44o2bhoknx1836my.rcgu.o" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.4by2z6fmzintinzq.rcgu.o" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.4m6wbek9j7su2h34.rcgu.o" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.4u1f6k0co9rnwzb0.rcgu.o" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.anxnb5tw8lpyq20.rcgu.o" "-o" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe" "/home/xiaoniu/.cache/cargo/debug/deps/try_tch-207b7b6f5354f3fe.2z7t05z8sueetewz.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-
@xiaoniu-578fa6bff964d005
xiaoniu-578fa6bff964d005 / README.md
Last active September 17, 2023 00:52
Unbiased Watermark Timestamp

This is the timestamp of unbiased watermark paper on May 24th 2023.

@xiaoniu-578fa6bff964d005
xiaoniu-578fa6bff964d005 / unbiasedwatermark.pdf
Last active September 29, 2023 06:44
Unbiased watermark paper
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.