Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for someFunction (0.15 sec)

  1. src/cmd/vet/testdata/print/print.go

    	// Can't print a function.
    	Printf("%d", someFunction) // ERROR "Printf format %d arg someFunction is a func value, not called"
    	Printf("%v", someFunction) // ERROR "Printf format %v arg someFunction is a func value, not called"
    	Println(someFunction)      // ERROR "Println arg someFunction is a func value, not called"
    	Printf("%p", someFunction) // ok: maybe someone wants to see the pointer
    	Printf("%T", someFunction) // ok: maybe someone wants to see the type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  2. src/cmd/cover/testdata/test.go

    		break loop
    	}
    }
    
    // This comment didn't appear in generated go code.
    func haha() {
    	// Needed for cover to add counter increment here.
    	_ = 42
    }
    
    // Some someFunction.
    //
    //go:nosplit
    func someFunction() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ListsTest.java

      private static final List<String> SOME_STRING_LIST = asList("1", "2", "3", "4");
    
      private static final Function<Number, String> SOME_FUNCTION = new SomeFunction();
    
      private static class SomeFunction implements Function<Number, String>, Serializable {
        @Override
        public String apply(Number n) {
          return String.valueOf(n);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ListsTest.java

      private static final List<String> SOME_STRING_LIST = asList("1", "2", "3", "4");
    
      private static final Function<Number, String> SOME_FUNCTION = new SomeFunction();
    
      private static class SomeFunction implements Function<Number, String>, Serializable {
        @Override
        public String apply(Number n) {
          return String.valueOf(n);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. src/cmd/cover/cover_test.go

    	file, err = os.ReadFile(coverOutput)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// compiler directive must appear right next to function declaration.
    	if got, err := regexp.MatchString(".*\n//go:nosplit\nfunc someFunction().*", string(file)); err != nil || !got {
    		t.Error("misplaced compiler directive")
    	}
    	// "go:linkname" compiler directive should be present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_printer.mlir

          %2:2 = "tf.IdentityN"(%1#0, %1#1) : (tensor<i32>, tensor<f32>) -> (tensor<i32>, tensor<f32>) loc("identity@some_function")
          tf_executor.yield %2#0, %2#1 : tensor<i32>, tensor<f32> loc("identity@some_function")
        } loc("identity@some_function")
        tf_executor.fetch
      }
      func.return
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_location_roundtrip.mlir

    // CHECK-NEXT:      "tf_executor.island"() ({
    // CHECK-NEXT:        "tf.Identity"(%{{.*}}) : (tensor<f32>) -> tensor<f32> loc("identity@some_function")
    // CHECK-NEXT:        "tf_executor.yield"(%{{.*}}) : (tensor<f32>) -> () loc("identity@some_function")
    // CHECK-NEXT:      }) : () -> (tensor<f32>, !tf_executor.control) loc("identity@some_function")
    // CHECK-NEXT:      "tf_executor.fetch"(%{{.*}}) : (tensor<f32>) -> () loc(unknown)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 05 14:24:12 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/exported_python_args.py

    import tensorflow.compat.v2 as tf
    from tensorflow.compiler.mlir.tensorflow.tests.tf_saved_model import common
    
    
    class TestModule(tf.Module):
    
      @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
      def some_function(self, x):
        return self.callee(x)
    
      # CHECK: While importing SavedModel function 'callee': in input signature:
      # CHECK-SAME: Unhandled structured value kind {{.*}} at index path: <value>.1.foo
      @tf.function
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/shapes_for_arguments.py

      #
      # CHECK:      func {{@[a-zA-Z_0-9]+}}(%arg0: tensor<f32> {{.*}}) -> (tensor<f32> {{.*}})
      # CHECK-SAME: attributes {{.*}} tf_saved_model.exported_names = ["some_function"]
      @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
      def some_function(self, x):
        return x
    
    
    if __name__ == '__main__':
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/duplicate_method_names_v1.py

      signature_def = tf.saved_model.signature_def_utils.build_signature_def(
          inputs=None, outputs={'s': tensor_info_s}, method_name='some_function')
      signature_def2 = tf.saved_model.signature_def_utils.build_signature_def(
          inputs=None, outputs={'t': tensor_info_t}, method_name='some_function')
    
      # Create two signatures that share the same variable.
      return {'key': signature_def, 'key2': signature_def2}, None, None
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top