Method: StableDiffusion::EmbeddingItem#list_invalid_properties
- Defined in:
- lib/stable_diffusion/models/embedding_item.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/stable_diffusion/models/embedding_item.rb', line 97 def list_invalid_properties invalid_properties = Array.new if @shape.nil? invalid_properties.push('invalid value for "shape", shape cannot be nil.') end if @vectors.nil? invalid_properties.push('invalid value for "vectors", vectors cannot be nil.') end invalid_properties end |