Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading the model issue for predication #177

Open
Silk760 opened this issue Feb 6, 2019 · 0 comments
Open

loading the model issue for predication #177

Silk760 opened this issue Feb 6, 2019 · 0 comments

Comments

@Silk760
Copy link

Silk760 commented Feb 6, 2019

I have some issue loading the model , I tried to modify the KerasDanse layer
with get config

  def get_config(self):
    config = {
        'input_dims':self.tt_shape[0],
        'output_dims':self.tt_shape[1],
        'tt_rank': self.tt_rank,
        'activation': self.activation,
        'use_bias': self.use_bias,
        'kernel_initializer': self.kernel_initializer,
        'bias_initializer': self.bias_initializer,
    }
    
    return config

but still I have issue load the model using Keras method load_model with specifying the custom object as KerasDense

 load_model('model.h5', custom_objects={'KerasDense':KerasDense})

error

__init__() missing 2 required positional arguments: 'input_dims' and 'output_dims'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant