Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TF] Update TensorFlowRuntime tests #23367

Merged
merged 1 commit into from
Mar 18, 2019
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/accelerator_only.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
// REQUIRES: swift_test_mode_optimize

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

@TensorFlowGraph
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/codable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

import TensorFlow
import Foundation
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var CodableTests = TestSuite("TensorFlowCodable")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/conflicting_module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
// REQUIRES: executable_test

import StdlibUnittest
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif

import ConflictingModule1
import ConflictingModule2
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/control_flow_objc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
// Control flow related tests.

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest
import Foundation

Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/dataset_global.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
// sends/recvs support for variant handles.

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var DatasetGlobalTests = TestSuite("DatasetGlobal")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/dynamic_attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
// REQUIRES: tensorflow

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var DynamicAttributeTests = TestSuite("DynamicAttribute")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/dynamic_compilation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

import CTensorFlow
import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var DynamicCompilationTests = TestSuite("DynamicCompilation")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/dynamic_compilation_tensor_group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
// REQUIRES: executable_test

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var TensorGroupTest = TestSuite("TensorGroup")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/gpu_negative_tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
// This test suite contains expected failure tests for GPU execution.

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var GPUNegativeTests = TestSuite("GPUNegative")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/model_autodiff_runtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@

import TensorFlow
import StdlibUnittest
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif

var ModelADTests = TestSuite("ModelAD")

Expand Down
2 changes: 1 addition & 1 deletion test/TensorFlowRuntime/raw_ops.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import StdlibUnittest

var RawOpsTests = TestSuite("RawOps")

@_inlineable @inline(__always)
@inlinable @inline(__always)
public func testPointwiseBinaryOp<T : TensorFlowScalar & Equatable>(
tfOp: (Tensor<Float>, Tensor<Float>) -> Tensor<T>,
swiftOp: (Float, Float) -> T) {
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/runtime_entry_points.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

import CTensorFlow
import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var RuntimeEntryPointTests = TestSuite("RuntimeEntryPoint")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/sese_loop_canonicalization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
// REQUIRES: swift_test_mode_optimize

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var ControlFlowTests = TestSuite("ControlFlow")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/sese_regions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
// REQUIRES: swift_test_mode_optimize

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var SESERegionTests = TestSuite("SESERegion")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/tensor_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
// resolved, API tests that incur send/receive should reside here.“

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var TensorNonTPUTests = TestSuite("TensorNonTPU")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/tensor_autodiff_indirect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

import TensorFlow
import StdlibUnittest
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif

var TensorADTests = TestSuite("TensorIndirectAD")

Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/tensor_autodiff_indirect_crasher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@

import TensorFlow
import StdlibUnittest
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif

var TensorADTests = TestSuite("TensorIndirectAD")

Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/tensor_autodiff_runtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

import TensorFlow
import StdlibUnittest
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif

var TensorADTests = TestSuite("TensorAD")

Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/top_level_1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
// specifics, so we can keep it simple and just test CPU.

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var TopLevelTests = TestSuite("TopLevel")
Expand Down
4 changes: 4 additions & 0 deletions test/TensorFlowRuntime/top_level_2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
// lib/Sema/PlaygroundTransform.cpp generates calls into.

import TensorFlow
#if TPU
import TensorFlowUnittestTPU
#else
import TensorFlowUnittest
#endif
import StdlibUnittest

var TopLevelTests = TestSuite("TopLevel")
Expand Down