Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for test_function (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/resource-device-inference.mlir

      }
      func.return
    }
    
    // -----
    
    // Test that the pass can propagate through calls
    !tf_res = tensor<*x!tf_type.resource<tensor<32xf32>>>
    
    // CHECK-LABEL: func @test_function
    // CHECK-SAME: {tf.device = "/TPU:0"}
    func.func @test_function(%arg0: !tf_res) {
      // CHECK: "tf.Identity"
      // CHECK-SAME: {device = "/TPU:0"}
      %id0 = "tf.Identity"(%arg0) : (!tf_res) -> !tf_res
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 16:01:45 UTC 2022
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

              generator_op, generator_op.getInitFunc());
      func::FuncOp next_function =
          SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              generator_op, generator_op.getNextFunc());
      func::FuncOp finalize_function =
          SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              generator_op, generator_op.getFinalizeFunc());
    
      if (!init_function || !next_function || !finalize_function) {
        return failure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. analysis/analysis-api-standalone/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/session/builder/StandaloneSessionBuilderTest.kt

            // Test dependsOn dependency: expect in the common module, actual "typealias" in the platform-specific module
            val testFunction = ktFile.findDescendantOfType<KtFunction>()!!
            val localVariable = testFunction.findDescendantOfType<KtProperty>()!!
            analyze(localVariable) {
                val localVariableSymbol = localVariable.getVariableSymbol()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/symbols/FirStandaloneNormalAnalysisSourceModuleSymbolByPsiTestGenerated.java

      public void testForLoopVariable() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/forLoopVariable.kt");
      }
    
      @Test
      @TestMetadata("function.kt")
      public void testFunction() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/function.kt");
      }
    
      @Test
      @TestMetadata("functionWithTypeAlias.kt")
      public void testFunctionWithTypeAlias() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Feb 16 12:48:24 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/symbols/FirIdeNormalAnalysisSourceModuleSymbolByPsiTestGenerated.java

      public void testForLoopVariable() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/forLoopVariable.kt");
      }
    
      @Test
      @TestMetadata("function.kt")
      public void testFunction() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/function.kt");
      }
    
      @Test
      @TestMetadata("functionWithTypeAlias.kt")
      public void testFunctionWithTypeAlias() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Feb 16 12:48:24 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/symbols/Fe10IdeNormalAnalysisSourceModuleSymbolByPsiTestGenerated.java

      public void testForLoopVariable() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/forLoopVariable.kt");
      }
    
      @Test
      @TestMetadata("function.kt")
      public void testFunction() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/function.kt");
      }
    
      @Test
      @TestMetadata("functionWithTypeAlias.kt")
      public void testFunctionWithTypeAlias() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Feb 16 12:48:24 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_test.cc

          TF_DeleteFunction);
      if (TF_GetCode(status) != TF_OK) return;
      TFE_ContextAddFunction(context, function.get(), status);
    }
    
    TEST(PARALLEL_DEVICE, TestFunction) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 29.3K bytes
    - Viewed (0)
  8. src/internal/reflectlite/all_test.go

    	}
    }
    
    func TestFunctionValue(t *testing.T) {
    	var x any = func() {}
    	v := ValueOf(x)
    	if fmt.Sprint(ToInterface(v)) != fmt.Sprint(x) {
    		t.Fatalf("TestFunction returned wrong pointer")
    	}
    	assert(t, TypeString(v.Type()), "func()")
    }
    
    var appendTests = []struct {
    	orig, extra []int
    }{
    	{make([]int, 2, 4), []int{22}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
Back to top