Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 96 for ifdef (0.14 sec)

  1. tensorflow/c/c_test.c

    ==============================================================================*/
    
    #include <limits.h>
    #include <memory.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include <unistd.h>
    
    #ifdef _WIN32
    #include <process.h>
    #endif
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/c_api_experimental.h"
    #include "tensorflow/c/env.h"
    #include "tensorflow/c/kernels.h"
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.h

    // Experimental C API for TensorFlow.
    //
    // The API here is subject to changes in the future.
    // --------------------------------------------------------------------------
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    // When `enable` is true, set
    // tensorflow.ConfigProto.OptimizerOptions.global_jit_level to ON_1, and also
    // set XLA flag values to prepare for XLA compilation. Otherwise set
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler.h

    //      params->optimizer->struct_size = TP_OPTIMIZER_STRUCT_SIZE;
    //      params->optimizer->create_func = (My_optimizer::create_func);
    //    }
    
    #define GO_MAJOR 0
    #define GO_MINOR 0
    #define GO_PATCH 1
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    // TF_TriState is the C API typedef for tri-state.
    typedef enum TF_TriState {
      TF_TriState_Default = 0,
      TF_TriState_Off,
      TF_TriState_On,
    } TF_TriState;
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  4. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    +# define __bzero(s, n) __builtin_memset (s, '\0', n)
     #endif
     
    -
    -/* Copy N bytes from SRC to DEST, returning pointer to byte following the
    -   last copied.  */
    -#ifdef __USE_GNU
    -# if !defined _HAVE_STRING_ARCH_mempcpy || defined _FORCE_INLINES
    -#  ifndef _HAVE_STRING_ARCH_mempcpy
    -#   if __GNUC_PREREQ (3, 4)
    -#    define __mempcpy(dest, src, n) __builtin_mempcpy (dest, src, n)
    -#   elif __GNUC_PREREQ (3, 0)
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  5. tensorflow/c/experimental/gradients/array_grad_test.cc

      EXPECT_EQ(outputs[0], nullptr);
      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[1], {1.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
      outputs[1]->Unref();
    }
    
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.h

    // TFE_ContextEndStep while ops that rely on the step container may be running.
    TF_CAPI_EXPORT extern void TFE_ContextEndStep(TFE_Context* ctx);
    
    #ifdef __cplusplus
    } /* end extern "C" */
    #endif
    
    #ifdef __cplusplus
    // A workaround to ease conversion to and from numpy objects and
    // TFE_TensorHandle's.
    //
    // TODO(ashankar): Figure out an alternative scheme that precludes the need for
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  7. tensorflow/c/eager/gradient_checker_test.cc

      }
    
      float expected_dx[1] = {7.0f};
      ASSERT_NO_FATAL_FAILURE(CompareNumericalAndManualGradients(
          MulModel, ctx_.get(), {x.get(), y.get()}, 0, expected_dx, 1,
          UseFunction()));
    }
    
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, GradientCheckerTest,
        ::testing::Combine(::testing::Values("graphdef"),
                           /*tfrt*/ ::testing::Values(false),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/nn_grad_test.cc

      ASSERT_NO_FATAL_FAILURE(CompareNumericalAndAutodiffGradients(
          BiasAddModel, BuildGradModel(BiasAddModel, registry_),
          immediate_execution_ctx_.get(), {A.get(), Bias.get()}, UseFunction()));
    }
    
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradients_test.cc

          s.message());
      ASSERT_EQ(nullptr, outputs[0]);
    }
    
    // TODO(b/164171226): Enable this test with tfrt after AddInputList is
    // supported. It is needed for IdentityN.
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/math_grad_test.cc

      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[1], {0.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
      outputs[0]->Unref();
      outputs[1]->Unref();
    }
    
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
Back to top