Skip to content

Commit

Permalink
CM/CMX v3.2.9: fixing minor bugs (#1342)
Browse files Browse the repository at this point in the history
## V3.2.9
- fixed minor bug with JSON console output
- fixed minor bug with console in cmind.x function
  • Loading branch information
gfursin authored Oct 29, 2024
2 parents 55405ba + 44e6902 commit b61d80e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
4 changes: 4 additions & 0 deletions cm/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## V3.2.9
- fixed minor bug with JSON console output
- fixed minor bug with console in cmind.x function

## V3.2.8
- fixed Docker test for mlperf-inference with cm4mlops
- minor improvements
Expand Down
2 changes: 1 addition & 1 deletion cm/cmind/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Written by Grigori Fursin

__version__ = "3.2.8"
__version__ = "3.2.9"

from cmind.core import access
from cmind.core import x
Expand Down
15 changes: 0 additions & 15 deletions cm/cmind/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,21 +193,6 @@ def run_experiment(argv = None):

return run(['run', 'experiment'] + argv)

############################################################
def run_ff(argv = None):
"""
"""

# Access CMX
if argv is None:
argv = sys.argv[1:]

x = 'lex'
if len(argv) >0 and argv[0].startswith('_misc'):
x = argv[0]

return runx(['run', 'f'+x+'.flow'] + argv)

############################################################
def parse(cmd):
"""
Expand Down
6 changes: 3 additions & 3 deletions cm/cmind/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ def access(i):
return cm.access(i)

############################################################
def x(i):
def x(i, out = None):
"""
Automatically initialize CM and run automations
without the need to initialize and customize CM class.
Expand All @@ -1668,9 +1668,9 @@ def x(i):
global cm

if cm is None:
cm=CM()
cm = CM()

return cm.x(i)
return cm.x(i, out = out)

############################################################
def error(i):
Expand Down
1 change: 0 additions & 1 deletion cm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def run(self):
"cm = cmind.cli:run",
"cmx = cmind.cli:runx",
"cmr = cmind.cli:run_script",
"flexflow = cmind.cli:run_ff",
"cmrd = cmind.cli:docker_script",
"cmg = cmind.cli:gui_script",
"cme = cmind.cli:run_experiment"
Expand Down

0 comments on commit b61d80e

Please sign in to comment.