Skip to content

Commit

Permalink
discojs-core/specs: prefer local import
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Feb 7, 2024
1 parent aec8536 commit 3d96c85
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/aggregator/mean.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { assert, expect } from 'chai'
import { Map } from 'immutable'

import { aggregator, defaultTasks, client, Task, tf } from '@epfml/discojs-node'
import { aggregator, defaultTasks, client, Task, tf } from '..'
import { AggregationStep } from './base'

const task = defaultTasks.titanic.getTask()
Expand Down
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/serialization/model.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from 'chai'

import { tf, serialization } from '@epfml/discojs-node'
import { tf, serialization } from '..'

async function getRawWeights (model: tf.LayersModel): Promise<Array<[number, Float32Array]>> {
return Array.from(
Expand Down
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/serialization/weights.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from 'chai'

import { WeightsContainer, serialization } from '@epfml/discojs-node'
import { WeightsContainer, serialization } from '..'

describe('weights', () => {
it('can encode what it decodes', async () => {
Expand Down
3 changes: 2 additions & 1 deletion discojs/discojs-core/src/validation/validator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { assert } from 'chai'
import fs from 'fs'

import { Task, node, Validator, ConsoleLogger, EmptyMemory, client as clients, data, aggregator } from '@epfml/discojs-node'
import { Task, Validator, ConsoleLogger, EmptyMemory, client as clients, data, aggregator } from '..'
import { node } from '@epfml/discojs-node'

const simplefaceMock = {
taskID: 'simple_face',
Expand Down

0 comments on commit 3d96c85

Please sign in to comment.