I am trying to build a cuda engine using static dimensions and referring this documentation: https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html
However, I keep seeing the below error:
[TensorRT] ERROR: (Unnamed Layer* 249) [PluginV2Ext]: PluginV2Layer must be V2DynamicExt when there are runtime input dimensions.
This error points to the runtime input dimensions, however, I need to specify and use the static dimensions instead. I searched in many online forums, however, they were all about using runtime dimensions and using optimization profile.
I also tried to create and configure an optimization profile with same MIN/OPT/MAX as shown below but that also didn't help.
profile = builder.create_optimization_profile();
profile.set_shape("foo", (1, 3, 100, 200), (1, 3, 100, 200), (1, 3, 100, 200))
config.add_optimization_profile(profile)
Could anyone please provide some points on how I can go about using static dimensions instead and disable the check for runtime input dimensions?
Related
I am using the package RGEE (R wrapper for the Google Earth Engine Python API). The function ee_print() seems to work perfectly for an ImageCollection of just one variable, but seems to fail for ImageCollection with different variables where one needs to select the variable of interest. Any ideas on how to approach this issues with the latter kind of data.
Here's an example code:
GRIDMET = ee$ImageCollection("IDAHO_EPSCOR/GRIDMET")
ee_print(GRIDMET)
Where I get the following error message in return:
Error in strsplit(code, ":") : non-character argument
Have you considered the following approach?
GRIDMET = ee$ImageCollection("IDAHO_EPSCOR/GRIDMET")
print(GRIDMET, type = getOption("rgee.print.option"))
And play with the list of all metadata properties
GRIDMET$propertyNames()$getInfo()# Get a list of all metadata properties
(GRIDMET$get("product_tags")$getInfo()) # you can choose to show a characteristic like "product_tags"
I'm trying to run a dynamic brownian bridge movement model on an object of class 'MoveBurst'. I have an individual dataset of 30 locations, and have specified the model as follows:
bursted_dbbmm <- brownian.bridge.dyn(bursted, burstType='normal', raster = xAEQD.ind,
location.error = "LocationError", time.step = 5, ext = 3,
window.size = 29)
Running this code returns an error message:
Error in brownian.motion.variance.dyn(as(object, ".MoveTrackSingle"), :
window.size can't be larger than the number of locations in the move object
This is despite the fact that I specified the window size to be smaller than the number of locations in the move object. No matter what odd value i choose for the window.size, the same error gets returned. Any ideas how to get this to work?
I'm using RStudio v 1.2.5033, and 'move' R package version 3.2.2.
There was a bug in the move package. This is now fixed: https://gitlab.com/bartk/move/-/commit/e3db2077a7f0acdb23161a86a8a0d474c85fb41f
Let me know if it now works if you install the development version. It solved it for my reproducible example
I am trying to plot a small rectangle of a map:
library(OpenStreetMap)
upper_left <- c(47.413, 8.551);
lower_right <- c(47.417, 8.556);
map_osm <- openmap(upper_left, lower_right, type = 'osm' );
plot(map_osm );
When I run that, the openmap function gives me the error Error in osmtile(x%%nX, y, zoom, type) : could not obtain tile: 540 298 10.
The documentation of OpenStreetMap seems to indicate that I need to add an API key. However, I am not sure how exactly I would do that (because I use type='osm', not type = url) and I am also unclear where I'd get such an API key from.
The java.lang.NullPointerException and the following R-error (Error in osmtile(...)) seem to come from an older version of OpenStreetMap.
By updating OpenStreetMap to the latest version (0.3.4 currently), the error disappears and the example code of OP should work as it is, without needing an API key.
The accepted answer is not adequate as the error can occur even with the most recent package version.
Sometimes if a particular area is not available in a specific style, you get an error similar to the one mentioned above independent of the package version. The solution would be to try the function with a different style. This is mentioned in the following blog post
As an example, the following modification may solve the issue:
library(OpenStreetMap)
upper_left <- c(47.413, 8.551);
lower_right <- c(47.417, 8.556);
map_osm <- openmap(upper_left, lower_right, type = 'opencyclemap');
plot(map_osm)
I understand there is another question already for this...I am new and thus unable to comment on it. Additionally, I don't believe the question was answered.
Anyway I am running arules pkg: aprori.
I am using the following params:
testbasket_rules <- apriori(testbasket_txn, parameter = list(sup = 0.1, conf = 0.5, maxlen = 100))
I get 2 rules back, but also the error:
Error in length(obj) : Method length not implemented for class rules...
So I can't even inspect the 2 rules that were generated
I can mess around with the sup & conf and get more or less rules back, but always get the length error.
I checked my max basket length and it is not more than 100 and you can see that i set my maxlen to 100.
Does anybody have any ideas how to resolve?
I shut down my computer when I went home, upon restart the next day and opening up R and trying the script again I got desired output. Not sure what exactly was causing the issues...perhaps something with packages not loading correctly. But issue seems to be resolved now
I'm using Gamemaker studio 2 and I am fairly new keep in mind but I am fairly certain this isn't a problem on my side. I've been watching a youtube series on creating my first game using GML and my code looks EXACTLY like his and is not working.
if (mouse_check_button(mb_left)) {
instance_create_layer(x, y, "Layer_Bullet", obj_bullet);
}
This is where I'm getting an error. The error says:
##############################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_player:
instance_create_layer :: specified layer "Layer_Bullet" does not exist
at gml_Object_obj_player_Step_0 (line 11) - instance_create_layer(x, y, "Layer_Bullet", obj_bullet);
##############################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_player_Step_0 (line 11)
I have checked nearly 3000 times (exaggerated obviously) to make sure that the spelling is correct. I've renamed the layer, tried using a different layer. Nothing works.
Place an instance of a bullet somewhere in the scene....in the room to be specific.
that should work...let me know.