Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tfjs-core/src/ops/min_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import * as tf from '../index';
import {ALL_ENVS, describeWithFlags} from '../jasmine_util';
import {expectArraysClose, expectArraysEqual} from '../test_util';
import {expectArraysClose} from '../test_util';

describeWithFlags('min', ALL_ENVS, () => {
it('Tensor1D', async () => {
Expand All @@ -27,7 +27,7 @@ describeWithFlags('min', ALL_ENVS, () => {

it('ignores NaNs', async () => {
const a = tf.tensor1d([3, NaN, 2]);
expectArraysEqual(await tf.min(a).data(), 2);
expectArraysClose(await tf.min(a).data(), 2);
});

it('2D', async () => {
Expand Down Expand Up @@ -81,7 +81,7 @@ describeWithFlags('min', ALL_ENVS, () => {
tf.min(input, [1, 0]);

const inputDataAfter = await input.data();
expectArraysEqual(inputDataBefore, inputDataAfter);
expectArraysClose(inputDataBefore, inputDataAfter);
});

it('throws when passed a non-tensor', () => {
Expand Down