Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for TF (0.12 sec)

  1. tensorflow/c/eager/c_api_unified_experimental.cc

    }
    
    void TF_DeleteAbstractOp(TF_AbstractOp* op) { unwrap(op)->Release(); }
    
    void TF_DeleteAbstractTensor(TF_AbstractTensor* t) { unwrap(t)->Unref(); }
    
    TF_OutputList* TF_NewOutputList() { return wrap(new OutputList); }
    void TF_DeleteOutputList(TF_OutputList* o) { delete unwrap(o); }
    void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs,
                                    TF_Status* s) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

    }
    
    void TF_CloseDeprecatedSession(TF_DeprecatedSession* s, TF_Status* status) {
      status->status = s->session->Close();
    }
    
    void TF_DeleteDeprecatedSession(TF_DeprecatedSession* s, TF_Status* status) {
      status->status = absl::OkStatus();
      if (s == nullptr) return;
      delete s->session;
      delete s;
    }
    
    void TF_ExtendGraph(TF_DeprecatedSession* s, const void* proto,
                        size_t proto_len, TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      return r->length;
    }
    
    }  // namespace tf_read_only_memory_region
    
    // SECTION 4. Implementation for `TF_Filesystem`, the actual filesystem
    // ----------------------------------------------------------------------------
    namespace tf_posix_filesystem {
    
    static void Init(TF_Filesystem* filesystem, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
    }
    
    static void Cleanup(TF_Filesystem* filesystem) {}
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  4. tensorflow/c/c_test.c

      TF_WritableFileHandle* h;
      TF_Status* status = TF_NewStatus();
      TF_NewWritableFile(full_path, &h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status));
        return 1;
      }
      fprintf(stderr, "wrote %s\n", full_path);
      free(full_path);
      TF_CloseWritableFile(h, status);
      if (TF_GetCode(status) != TF_OK) {
    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)
  5. tensorflow/c/c_api_experimental.cc

      // `TF_AttrBuilderCheckCanRunOnDevice()` call(s) on the same `builder`.
      std::set<std::string> attr_names;
    };
    
    TF_AttrBuilder* TF_NewAttrBuilder(const char* op_name) {
      return new TF_AttrBuilder(op_name);
    }
    
    void TF_DeleteAttrBuilder(TF_AttrBuilder* builder) { delete builder; }
    
    void TF_AttrBuilderSetType(TF_AttrBuilder* builder, const char* attr_name,
                               TF_DataType value) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/devel.usertools/wheel_verification.bats

        python3 -m pip install "$TF_WHEEL"
    }
    
    @test "TensorFlow is importable" {
        source /tf/venv/bin/activate
        python3 -c 'import tensorflow as tf; t1=tf.constant([1,2,3,4]); t2=tf.constant([5,6,7,8]); print(tf.add(t1,t2).shape)'
    }
    
    # Is this still useful?
    @test "TensorFlow has Keras" {
        source /tf/venv/bin/activate
        python3 -c 'import sys; import tensorflow as tf; sys.exit(0 if "keras" in tf.keras.__name__ else 1)'
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  7. configure.py

      if tf_cuda_paths:
        environ_cp['TF_CUDA_PATHS'] = tf_cuda_paths
    
    
    def set_tf_cuda_version(environ_cp):
      """Set TF_CUDA_VERSION."""
      ask_cuda_version = (
          'Please specify the CUDA SDK version you want to use. '
          '[Leave empty to default to CUDA %s]: ') % _DEFAULT_CUDA_VERSION
      tf_cuda_version = get_from_env_or_user_or_default(environ_cp,
                                                        'TF_CUDA_VERSION',
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/gradients/grad_test_helper.cc

        auto num_elem_analytical = TF_TensorElementCount(analytical_tensor);
    
        ASSERT_EQ(num_elem_numerical, num_elem_analytical);
    
        float* dnumerical = new float[num_elem_numerical]{0};
        memcpy(&dnumerical[0], TF_TensorData(numerical_tensor),
               TF_TensorByteSize(numerical_tensor));
        float* danalytical = new float[num_elem_analytical]{0};
        memcpy(&danalytical[0], TF_TensorData(analytical_tensor),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/custom_gradient_test.cc

                                              /*result=*/outputs));
      exp_output->Unref();
      return absl::OkStatus();
    }
    
    TEST_P(CustomGradientTest, ExpWithPassThroughGrad) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      AbstractContextPtr ctx;
      {
        AbstractContext* ctx_raw = nullptr;
        Status s =
            BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

    TEST(CAPI, SessionOptions) {
      TF_SessionOptions* opt = TF_NewSessionOptions();
      TF_DeleteSessionOptions(opt);
    }
    
    TEST(CAPI, DeprecatedSession) {
      TF_Status* s = TF_NewStatus();
      TF_SessionOptions* opt = TF_NewSessionOptions();
      TF_DeprecatedSession* session = TF_NewDeprecatedSession(opt, s);
      TF_DeleteSessionOptions(opt);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top