Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 592 for test_utils (0.39 sec)

  1. tensorflow/compiler/mlir/tfr/examples/customization/test_ops_test.py

    import os
    import tensorflow as tf
    
    from tensorflow.compiler.mlir.tfr.python import test_utils
    from tensorflow.python.framework import test_ops
    from tensorflow.python.platform import test
    
    
    class TestOpsDefsTest(test_utils.OpsDefsTest):
    
      def test_test_ops(self):
        attr = tf.function(test_ops.test_attr)(tf.float32)
        self.assertAllClose(attr.numpy(), 100.0)
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:41:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_ops_test.py

    from tensorflow.compiler.mlir.tfr.python import test_utils
    from tensorflow.python.framework import load_library
    from tensorflow.python.platform import test
    
    _lib_dir = os.path.dirname(gen_mnist_ops.__file__)
    _lib_name = os.path.basename(gen_mnist_ops.__file__)[4:].replace('.py', '.so')
    load_library.load_op_library(os.path.join(_lib_dir, _lib_name))
    
    
    class MnistOpsDefsTest(test_utils.OpsDefsTest):
    
      def test_new_conv2d_relu(self):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/examples/pad/pad_ops_test.py

    from tensorflow.compiler.mlir.tfr.python import test_utils
    from tensorflow.python.framework import load_library
    from tensorflow.python.platform import test
    
    _lib_dir = os.path.dirname(gen_pad_ops.__file__)
    _lib_name = os.path.basename(gen_pad_ops.__file__)[4:].replace('.py', '.so')
    load_library.load_op_library(os.path.join(_lib_dir, _lib_name))
    
    
    class PadOpsDefsTest(test_utils.OpsDefsTest, parameterized.TestCase):
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/BUILD

        ] + if_not_mobile(["//tensorflow/core:lib"]) + if_android(["//tensorflow/core:portable_tensorflow_lib_lite"]),
    )
    
    cc_library(
        name = "test_utils",
        testonly = True,
        hdrs = ["test_utils.h"],
        visibility = ["//visibility:public"],
        deps = [
            "//tensorflow/core:test",
            "//tensorflow/core/platform:protobuf",
        ],
    )
    
    tf_cc_test(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 05:43:44 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc

    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h"
    #include "tensorflow/compiler/mlir/tf2xla/transforms/test_utils.h"
    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    namespace {
    
    using mlir::mhlo::test::GetMlirModuleFromString;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 17:03:53 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/BUILD

            "//tensorflow/compiler/mlir/python/mlir_wrapper:filecheck_wrapper",
            "//tensorflow/python/platform:client_testlib",
        ],
    )
    
    py_strict_library(
        name = "test_utils",
        srcs = ["python/test_utils.py"],
        srcs_version = "PY3",
        deps = [
            "//tensorflow:tensorflow_py",
            "//tensorflow/python/eager:backprop",
            "//tensorflow/python/framework:test_lib",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc

    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tf2xla/internal/inference/inference_passes.h"
    #include "tensorflow/compiler/mlir/tf2xla/transforms/test_utils.h"
    #include "tensorflow/core/lib/monitoring/cell_reader.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace tf2xla {
    namespace internal {
    namespace {
    
    using ::mlir::MLIRContext;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/ops/variable_ops_test.cc

    #include "tensorflow/c/experimental/saved_model/core/ops/variable_ops.h"
    
    #include <memory>
    
    #include "tensorflow/c/eager/immediate_execution_tensor_handle.h"
    #include "tensorflow/c/experimental/saved_model/core/test_utils.h"
    #include "tensorflow/c/tensor_interface.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/common_runtime/eager/context.h"
    #include "tensorflow/core/framework/tensor.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 21 19:26:54 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  9. tensorflow/cc/saved_model/util_test.cc

    #include "tensorflow/cc/saved_model/util.h"
    
    #include <map>
    #include <string>
    #include <utility>
    #include <vector>
    
    #include "tensorflow/cc/saved_model/test_utils.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/tensor_testutil.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    #include "tensorflow/core/lib/io/path.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/ops/restore_ops_test.cc

    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    #include "tensorflow/c/eager/immediate_execution_tensor_handle.h"
    #include "tensorflow/c/experimental/saved_model/core/test_utils.h"
    #include "tensorflow/c/tensor_interface.h"
    #include "tensorflow/cc/saved_model/constants.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/lib/core/status_test_util.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top