Comments (1)
Okay this is weirdly timely because the following also failed on me this morning. Using the same example as above:
library(greta)
x <- rnorm(10)
mu <- normal(0, 5)
sigma <- lognormal(1, 0.1)
distribution(x) <- normal(mu, sigma)
m <- model(mu, sigma)
draws <- mcmc(m, n_samples = 2000, thin = 2, one_by_one = TRUE)
This errors:
tensorflow error:
Error in py_call_impl(callable, dots$args, dots$keywords):
tensorflow.python.framework.errors_impl.UnimplementedError: TensorArray has size zero, but
element shape [?] is not fully defined. Currently only static shapes are supported when
packing zero-size TensorArrays. <... omitted ...>gather(math_ops.range(0, self.size()),
name=name) File "/tensorflow/python/ops/tensor_array_ops.py", line 323, in gather
element_shape=element_shape) File "/tensorflow/python/ops/gen_data_flow_ops.py", line 6705, in
tensor_array_gather_v3 element_shape=element_shape, name=name) File
"/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper op_def=op_def)
File "/tensorflow/python/util/deprecation.py", line 507, in new_func return func(*args,
**kwargs) File "/tensorflow/python/framework/ops.py", line 3616, in create_op op_def=op_def)
File "/tensorflow/python/framework/ops.py", line 2005, in __init__ self._traceback =
tf_s
Error in trace_list_batches[[1]] : subscript out of bounds
Note that this n_samples
is a multiple of thin
here, but one_by_one = TRUE
seems to break things...
from greta.
Related Issues (20)
- Thinning creates python error when n_samples is 1000 and thin = 100
- Create two plot options for greta models - compute method and dag
- greta_conflicts() HOT 2
- Provide more details in `greta_sitrep()` to assist with debugging
- greta_sitrep() fails, despite github install_great_deps() reporting no errors HOT 5
- Update R Depends HOT 1
- Capture errors in misspelt argument names HOT 1
- calculate() hangs with NaN parameters in sampling distribution in tf2 branch HOT 3
- `mcmc` failed in R 4.3.3 HOT 2
- use `cli::test_that_cli()` for testing cli output
- Literature on Greta HOT 1
- Speed up testing in greta HOT 1
- data frame printing and overwriting methods for greta arrays
- use rhub 2.0
- Some git hygiene
- opt() errors with "Error in as.numeric(tfe$tf_optimiser$iterations): cannot coerce type 'environment' to vector of type 'double'" HOT 1
- calculating a wishart behaves differently pre and post MCMC
- Use `%||%` to replace `if (is.null(x)) {do else}` pattern
- Use "explaining variables" in `if` statements or other places
- Explore python installation process in `rgee`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greta.