cnvrg 1.6.0.2 → 1.6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cnvrg/api.rb +1 -1
- data/lib/cnvrg/cli.rb +1 -0
- data/lib/cnvrg/job_cli.rb +13 -0
- data/lib/cnvrg/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a3c88e2b4c7677c74b802126e781c275932fa5b7e717828ff285c1f4c2bbf4b
|
|
4
|
+
data.tar.gz: af24f9c12671ad958394dc267b0723126172483e34a079b83774e16af95312e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34926b47f89799fe2fd2d3d4ff2716a6b73c1d780ee6153458709269872034dc9dd355c6aaa87bde39fc17633404aa93034f8003e613c46e7fe150ef7c9497d5
|
|
7
|
+
data.tar.gz: 8942c99181323e7d70aab5fc63bded109a6ae2c949118c859c392436888544281091c8cd95ebacaa027c0c1cb74a1eae5306a4cde563a15a608601605ad057bf
|
data/lib/cnvrg/api.rb
CHANGED
data/lib/cnvrg/cli.rb
CHANGED
|
@@ -2449,6 +2449,7 @@ module Cnvrg
|
|
|
2449
2449
|
@dataset = Dataset.new(dataset_dir)
|
|
2450
2450
|
@files = Cnvrg::Datafiles.new(@dataset.owner, @dataset.slug, dataset: @dataset)
|
|
2451
2451
|
all_files = all_files
|
|
2452
|
+
@dataset.generate_idx
|
|
2452
2453
|
res = @dataset.compare_idx_download(all_files: all_files, desired_commit: commit)
|
|
2453
2454
|
unless CLI.is_response_success(res, false)
|
|
2454
2455
|
log_message("Cant find the desired commit, please check it or try to download without it.", Thor::Shell::Color::RED)
|
data/lib/cnvrg/job_cli.rb
CHANGED
|
@@ -38,5 +38,18 @@ module Cnvrg
|
|
|
38
38
|
commands = @executer.get_requirements_commands
|
|
39
39
|
@executer.execute_cmds(commands)
|
|
40
40
|
end
|
|
41
|
+
def tensorboard(start:true)
|
|
42
|
+
cli = Cnvrg::CLI.new
|
|
43
|
+
cli.log_start(__method__, args, options)
|
|
44
|
+
@project = Project.new(nil, owner: ENV['CNVRG_OWNER'], slug: ENV['CNVRG_PROJECT'])
|
|
45
|
+
@executer = Helpers::Executer.new(project: @project, job_type: ENV['CNVRG_JOB_TYPE'], job_id: ENV['CNVRG_JOB_ID'])
|
|
46
|
+
commands = []
|
|
47
|
+
if start
|
|
48
|
+
commands << "nohup tensorboard --logdir=/home/ds/notebooks </dev/null &"
|
|
49
|
+
@executer.execute_cmds(commands)
|
|
50
|
+
else
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
end
|
|
41
54
|
end
|
|
42
55
|
end
|
data/lib/cnvrg/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cnvrg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.0.
|
|
4
|
+
version: 1.6.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yochay Ettun
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-11-
|
|
13
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -476,7 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
476
476
|
- !ruby/object:Gem::Version
|
|
477
477
|
version: '0'
|
|
478
478
|
requirements: []
|
|
479
|
-
rubygems_version: 3.0.
|
|
479
|
+
rubygems_version: 3.0.4
|
|
480
480
|
signing_key:
|
|
481
481
|
specification_version: 4
|
|
482
482
|
summary: A CLI tool for interacting with cnvrg.io.
|