Home
last modified time | relevance | path

Searched refs:generate_one_hot (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/explainer/explanation/_attribution/_backprop/
Dbackprop_utils.py19 from mindspore.explainer._utils import unify_inputs, unify_targets, generate_one_hot
44 weights = generate_one_hot(targets, num_categories)
/third_party/mindspore/mindspore/explainer/
D_utils.py74 def generate_one_hot(indices, depth): function