Open dfalbel opened 5 years ago
Verify why it fails. Here is the test log from travis:
── 1. Error: geometric works (@test-tensor.R#1042) ──────────────────────────── _th_geometric_ is not implemented for type CPUFloatType (_th_geometric_ at /pytorch/build/aten/src/ATen/TypeDefault.cpp:1538) frame #0: std::function<std::string ()>::operator()() const + 0x11 (0x7f3668cd8111 in /home/travis/libtorch/lib/libc10.so) frame #1: c10::at::TypeDefault::_th_geometric_(at::Tensor&, double, at::Generator*) const + 0x6e (0x7f3669adfeee in /home/travis/libtorch/lib/libcaffe2.so) frame #3: at::native::geometric_(at::Tensor&, double, at::Generator*) + 0x42 (0x7f36697c9e92 in /home/travis/libtorch/lib/libcaffe2.so) frame #4: at::TypeDefault::geometric_(at::Tensor&, double, at::Generator*) const + 0x66 (0x7f3669afa036 in /home/travis/libtorch/lib/libcaffe2.so) frame #5: torch::autograd::VariableType::geometric_(at::Tensor&, double, at::Generator*) const + 0x27d (0x7f367332480d in /home/travis/libtorch/lib/libtorch.so.1) frame #6: tensor_geometric__(Rcpp::XPtr<at::Tensor, Rcpp::PreserveStorage, &(void Rcpp::standard_delete_finalizer<at::Tensor>(at::Tensor*)), false>, double) + 0x3e (0x7f3673c14a0e in /home/travis/build/dfalbel/torch/torch.Rcheck/torch/libs/torch.so) frame #7: _torch_tensor_geometric__ + 0x53 (0x7f3673c0b853 in /home/travis/build/dfalbel/torch/torch.Rcheck/torch/libs/torch.so) frame #8: <unknown function> + 0xf7b7d (0x7f367b482b7d in /home/travis/R-bin/lib/R/lib/libR.so) frame #9: <unknown function> + 0x134386 (0x7f367b4bf386 in /home/travis/R-bin/lib/R/lib/libR.so) frame #10: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #11: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #12: Rf_eval + 0x2fc (0x7f367b4ce77c in /home/travis/R-bin/lib/R/lib/libR.so) frame #13: <unknown function> + 0x1465cf (0x7f367b4d15cf in /home/travis/R-bin/lib/R/lib/libR.so) frame #14: Rf_eval + 0x55d (0x7f367b4ce9dd in /home/travis/R-bin/lib/R/lib/libR.so) frame #15: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #16: Rf_eval + 0x2fc (0x7f367b4ce77c in /home/travis/R-bin/lib/R/lib/libR.so) frame #17: <unknown function> + 0x134e73 (0x7f367b4bfe73 in /home/travis/R-bin/lib/R/lib/libR.so) frame #18: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #19: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #20: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #21: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #22: <unknown function> + 0x143f16 (0x7f367b4cef16 in /home/travis/R-bin/lib/R/lib/libR.so) frame #23: <unknown function> + 0x1400ec (0x7f367b4cb0ec in /home/travis/R-bin/lib/R/lib/libR.so) frame #24: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #25: <unknown function> + 0x143f16 (0x7f367b4cef16 in /home/travis/R-bin/lib/R/lib/libR.so) frame #26: Rf_eval + 0x800 (0x7f367b4cec80 in /home/travis/R-bin/lib/R/lib/libR.so) frame #27: <unknown function> + 0x1490e1 (0x7f367b4d40e1 in /home/travis/R-bin/lib/R/lib/libR.so) frame #28: <unknown function> + 0x180809 (0x7f367b50b809 in /home/travis/R-bin/lib/R/lib/libR.so) frame #29: <unknown function> + 0x132959 (0x7f367b4bd959 in /home/travis/R-bin/lib/R/lib/libR.so) frame #30: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #31: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #32: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #33: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #34: <unknown function> + 0x143f16 (0x7f367b4cef16 in /home/travis/R-bin/lib/R/lib/libR.so) frame #35: <unknown function> + 0x1400ec (0x7f367b4cb0ec in /home/travis/R-bin/lib/R/lib/libR.so) frame #36: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #37: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #38: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #39: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #40: <unknown function> + 0x143f16 (0x7f367b4cef16 in /home/travis/R-bin/lib/R/lib/libR.so) frame #41: <unknown function> + 0x1400ec (0x7f367b4cb0ec in /home/travis/R-bin/lib/R/lib/libR.so) frame #42: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #43: <unknown function> + 0x143f16 (0x7f367b4cef16 in /home/travis/R-bin/lib/R/lib/libR.so) frame #44: <unknown function> + 0x1400ec (0x7f367b4cb0ec in /home/travis/R-bin/lib/R/lib/libR.so) frame #45: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #46: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #47: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #48: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #49: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #50: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #51: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #52: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #53: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #54: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #55: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #56: <unknown function> + 0x139667 (0x7f367b4c4667 in /home/travis/R-bin/lib/R/lib/libR.so) frame #57: Rf_eval + 0x348 (0x7f367b4ce7c8 in /home/travis/R-bin/lib/R/lib/libR.so) frame #58: <unknown function> + 0x144dbb (0x7f367b4cfdbb in /home/travis/R-bin/lib/R/lib/libR.so) frame #59: Rf_eval + 0x2fc (0x7f367b4ce77c in /home/travis/R-bin/lib/R/lib/libR.so) frame #60: <unknown function> + 0x1465cf (0x7f367b4d15cf in /home/travis/R-bin/lib/R/lib/libR.so) frame #61: Rf_eval + 0x55d (0x7f367b4ce9dd in /home/travis/R-bin/lib/R/lib/libR.so) frame #62: <unknown function> + 0x148a67 (0x7f367b4d3a67 in /home/travis/R-bin/lib/R/lib/libR.so) frame #63: <unknown function> + 0x134386 (0x7f367b4bf386 in /home/travis/R-bin/lib/R/lib/libR.so) 1: expect_silent(x$geometric_(0.5)) at testthat/test-tensor.R:1042 2: quasi_capture(enquo(object), evaluate_promise) 3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo))) 4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)) 5: force(code) 6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message) 7: withVisible(code) 8: eval_bare(get_expr(quo), get_env(quo)) 9: x$geometric_(0.5) 10: tensor_geometric__(self$pointer, p)
Verify why it fails. Here is the test log from travis: