diff --git a/docs/assets/images/model-parallelism.png b/docs/assets/images/model-parallelism.png new file mode 100644 index 00000000..45543956 Binary files /dev/null and b/docs/assets/images/model-parallelism.png differ diff --git a/docs/assets/templates/python/material/class.html b/docs/assets/templates/python/material/class.html new file mode 100644 index 00000000..ab982e5a --- /dev/null +++ b/docs/assets/templates/python/material/class.html @@ -0,0 +1,127 @@ +
{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
+ {% endif %}
+
+ {% with labels = class.labels %}
+ {% include "labels.html" with context %}
+ {% endwith %}
+
+ {% endfilter %}
+
+ {% if config.separate_signature and config.merge_init_into_class %}
+ {% if "__init__" in class.members %}
+ {% with function = class.members["__init__"] %}
+ {% filter format_signature(function, config.line_length, crossrefs=config.signature_crossrefs) %}
+ {% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
+ {% endfilter %}
+ {% endwith %}
+ {% endif %}
+ {% endif %}
+
+ {% else %}
+ {% if config.show_root_toc_entry %}
+ {% filter heading(heading_level,
+ role="class",
+ id=html_id,
+ toc_label=class.path if config.show_root_full_path else class.name,
+ hidden=True) %}
+ {% endfilter %}
+ {% endif %}
+ {% set heading_level = heading_level - 1 %}
+ {% endif %}
+
+
+ Bases: {% for expression in class.bases -%}
+ {% include "expression.html" with context %}
{% if not loop.last %}, {% endif %}
+ {% endfor -%}
+
{{ class.relative_filepath }}
{{ class.relative_filepath }}
{{ section.title or "Parameters:" }}
+Name | +Type | +Description | +Default | +
---|---|---|---|
{{ parameter.name }} |
+
+ {% if parameter.annotation %}
+ {% with expression = parameter.annotation %}
+ {% include "expression.html" with context %}
+ {% endwith %}
+ {% endif %}
+ |
+ {{ parameter.description|convert_markdown(heading_level, html_id) }} | +
+ {% if parameter.default %}
+ {% with expression = parameter.default %}
+ {% include "expression.html" with context %}
+ {% endwith %}
+ {% else %}
+ required
+ {% endif %}
+ |
+
{{ section.title or "Parameters:" }}
+{% include "expression.html" with context %}
)
+ {% endwith %}
+ {% endif %}
+ – {{ parameter.description|convert_markdown(heading_level, html_id) }}
+ {{ (section.title or "PARAMETER").rstrip(":").upper() }} | +DESCRIPTION | +
---|---|
{{ parameter.name }} |
+
+ {{ parameter.description|convert_markdown(heading_level, html_id) }}
+
+ {% if parameter.annotation %}
+
+ TYPE:
+ {% with expression = parameter.annotation %}
+ |
+
{{ function.relative_filepath }}