Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for tf (0.14 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/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)
  4. tensorflow/api_template.__init__.py

    _API_MODULE = _sys.modules[__name__].bitwise
    _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
    _current_module = _sys.modules[__name__]
    
    if not hasattr(_current_module, "__path__"):
      __path__ = [_tf_api_dir]
    elif _tf_api_dir not in __path__:
      __path__.append(_tf_api_dir)
    
    # Hook external TensorFlow modules.
    
    # Load tensorflow-io-gcs-filesystem if enabled
    if (_os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "true" or
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  5. 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)
  6. 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)
  7. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    #include "tsl/distributed_runtime/coordination/coordination_service_agent.h"
    
    TF_Device* TF_GetDevice(TF_OpKernelContext* ctx) {
      auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx);
      return reinterpret_cast<TF_Device*>(cc_ctx->device());
    }
    
    // --------------------------  Resource  ---------------------------------------
    void TF_CreatePluginResource(TF_OpKernelContext* ctx,
                                 const char* container_name,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api_distributed_test.cc

      ASSERT_EQ(1, num_retvals);
      TF_Tensor* t = TFE_TensorHandleResolve(retvals[0], status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteTensorHandle(retvals[0]);
      float sum = 0;
      ASSERT_EQ(sizeof(sum), TF_TensorByteSize(t));
      memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t));
      TF_DeleteTensor(t);
      ASSERT_EQ(sum, 4.0);
    
      TFE_DeleteOp(func);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function.cc

        stack_traces[n->name()] = n->GetStackTrace();
      }
    
      TF_Function* tf_function = new TF_Function();
      tf_function->record = new tensorflow::FunctionRecord(
          std::move(fdef), std::move(stack_traces), false);
    
      return tf_function;
    }
    
    TF_Function* TF_GraphToFunction(const TF_Graph* fn_body, const char* fn_name,
                                    unsigned char append_hash_to_fn_name,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  10. 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)
Back to top