khannaekta commented on a change in pull request #476: DL: Avoid constant 
folding of weights in GPDB6 plan
URL: https://github.com/apache/madlib/pull/476#discussion_r374870328
 
 

 ##########
 File path: src/ports/postgres/modules/deep_learning/madlib_keras_helper.py_in
 ##########
 @@ -314,3 +315,7 @@ def get_accessible_gpus_for_seg(schema_madlib, 
segments_per_host, module_name):
                     'recommended configuration is to have 1 GPU available per 
segment.')
                 warning_flag = False
         return accessible_gpus_for_seg
+
+def is_platform_gp6():
+    version_wrapper = __mad_version()
+    return version_wrapper.is_gp_version_less_than('6.0')
 
 Review comment:
   Good catch! This should actually `return not 
version_wrapper.is_gp_version_less_than('6.0')`. 
   Then,  if the version is gpdb5 => this function would return a False. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to