Searched refs:generate_one_hot (Results 1 – 2 of 2) sorted by relevance
19 from mindspore.explainer._utils import unify_inputs, unify_targets, generate_one_hot44 weights = generate_one_hot(targets, num_categories)
74 def generate_one_hot(indices, depth): function