Zack Polizzi

Results 26 comments of Zack Polizzi

Adding `-std=c++11` to `cxx_flags` and `nvcc_flags` in setup.py seems to have solved that problem. Took like an hour to build, though.

I also agree that this should be documented! Sometimes you have to reshape an array with an undefined number of axes, and I don't think there's any other way to...

Well, supposing you only want to check a couple axes, ```check_shape(x, "b t h w c", t=T)``` is certainly more descriptive than ```check_shape(x, [None, T, None, None, None])``` or ```assert...

It also allows for usage like ``` shapes = parse_shape(x, "b t k h w c") check_shape(y, "b t k h w", **shapes) check_shape(z, "b t h w c", **shapes)...

Yeah, understood - I figured this wouldn't really be possible at least with the syntax I suggested. But @hkclark I appreciate your suggestion - definitely hacky but it gets at...

Hmm, sorta - but not quite. I lose the ability to do `Child(param="stuff")`, and it also doesn't solve the "avoiding typos" or "making clear which attrs in the child are...

Hmm, I'm no expert on the most pythonic way to do that, but it seems like it would be helpful to me!

No worries, I probably don't have the time/skill to dig into improving the solver. I'll just work with what you have here - this library is awesome overall!

Makes sense, thanks for the detailed response! Totally understand the limitations here, mainly just wanted to understand them better in this situation. The alternative you suggest with `Literal` does seem...