Skip to content

Commit

Permalink
Enable embedding projector to show for input embeddings.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 480040598
  • Loading branch information
iftenney authored and LIT team committed Oct 10, 2022
1 parent 3c0929f commit e7ac98b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lit_nlp/client/modules/embeddings_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ export class EmbeddingsModule extends LitModule {
}

static override shouldDisplayModule(modelSpecs: ModelInfoMap, datasetSpec: Spec) {
// Check if there are Embeddings in the input data.
if (findSpecKeys(datasetSpec, Embeddings).length > 0) return true;

// Ensure there are embeddings to use and that projection interpreters
// are loaded.
if (!doesOutputSpecContain(modelSpecs, Embeddings)) {
Expand Down

0 comments on commit e7ac98b

Please sign in to comment.