Skip to content

Shapes used to initialize variables must be fully-defined (no None dimensions). #19

@RadulDev

Description

@RadulDev

I was trying the tool with the given model, but came across this error. can any one help me guide me through using this tools correctly.

Error:
Shapes used to initialize variables must be fully-defined (no None dimensions). Received: shape=(None,) for variable path='sequential/batch_normalization/gamma'Traceback:

  1. load_DeepCC_model("/home/dell/BRC_TCGA")
  2. keras::load_model_hdf5(filepath = paste0(prefix, ".hdf5"))
  3. load_model(filepath, custom_objects, compile)
  4. do.call(keras$models$load_model, args)
  5. (structure(function (filepath, custom_objects = NULL, compile = TRUE,
    . safe_mode = TRUE)
    . {
    . cl <- sys.call()
    . cl[[1L]] <- list2
    . call_args <- split_named_unnamed(eval(cl, parent.frame()))
    . result <- py_call_impl(callable, call_args$unnamed, call_args$named)
    . if (py_get_convert(callable))
    . result <- py_to_r(result)
    . if (is.null(result))
    . invisible(result)
    . else result
    . }, class = c("python.builtin.function", "python.builtin.object"
    . ), py_object = ))(filepath = "/home/dell/BRC_TCGA.hdf5",
    . custom_objects = NULL, compile = TRUE)
  6. py_call_impl(callable, call_args$unnamed, call_args$named)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions