Class: Wandb::Artifact
- Inherits:
-
Object
- Object
- Wandb::Artifact
- Defined in:
- lib/wandb.rb
Overview
Artifact class
Instance Method Summary collapse
- #__pyptr__ ⇒ Object
- #add_dir(local_dir, name = nil) ⇒ Object
- #add_file(local_path, name = nil) ⇒ Object
- #get_path(name) ⇒ Object
-
#initialize(artifact) ⇒ Artifact
constructor
A new instance of Artifact.
- #metadata ⇒ Object
- #metadata=(new_metadata) ⇒ Object
- #name ⇒ Object
- #save ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(artifact) ⇒ Artifact
Returns a new instance of Artifact.
138 139 140 |
# File 'lib/wandb.rb', line 138 def initialize(artifact) @artifact = artifact end |
Instance Method Details
#__pyptr__ ⇒ Object
142 143 144 |
# File 'lib/wandb.rb', line 142 def __pyptr__ @artifact end |
#add_dir(local_dir, name = nil) ⇒ Object
158 159 160 |
# File 'lib/wandb.rb', line 158 def add_dir(local_dir, name = nil) @artifact.add_dir(local_dir, name) end |
#add_file(local_path, name = nil) ⇒ Object
154 155 156 |
# File 'lib/wandb.rb', line 154 def add_file(local_path, name = nil) @artifact.add_file(local_path, name) end |
#get_path(name) ⇒ Object
162 163 164 |
# File 'lib/wandb.rb', line 162 def get_path(name) @artifact.get_path(name) end |
#metadata ⇒ Object
166 167 168 |
# File 'lib/wandb.rb', line 166 def @artifact. end |
#metadata=(new_metadata) ⇒ Object
170 171 172 |
# File 'lib/wandb.rb', line 170 def () @artifact. = end |
#name ⇒ Object
146 147 148 |
# File 'lib/wandb.rb', line 146 def name @artifact.name end |
#save ⇒ Object
174 175 176 |
# File 'lib/wandb.rb', line 174 def save @artifact.save end |
#type ⇒ Object
150 151 152 |
# File 'lib/wandb.rb', line 150 def type @artifact.type end |