Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_TensorFromTensor (0.27 sec)

  1. tensorflow/c/experimental/next_pluggable_device/c_api.cc

        status->status = cc_status;
        return nullptr;
      }
    
      tensorflow::Tensor* tensor = var_info->var_info.var()->tensor();
      TF_Tensor* result_tensor =
          tensorflow::TF_TensorFromTensor(*tensor, &cc_status);
      status->status = cc_status;
      return result_tensor;
    }
    
    void TF_DeleteVariableInfo(TF_VariableInfo* var_info) {
      if (var_info != nullptr) {
        delete var_info;
      }
    }
    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)
  2. tensorflow/c/c_api_test.cc

    #include "tensorflow/core/protobuf/error_codes.pb.h"
    #include "tensorflow/core/protobuf/meta_graph.pb.h"
    #include "tensorflow/core/util/equal_graph_def.h"
    
    namespace tensorflow {
    TF_Tensor* TF_TensorFromTensor(const Tensor& src, Status* status);
    Status TF_TensorToTensor(const TF_Tensor* src, Tensor* dst);
    
    namespace {
    
    static void ExpectHasSubstr(StringPiece s, StringPiece expected) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. tensorflow/c/c_api_experimental.cc

      std::unique_ptr<tensorflow::Tensor> tensor;
      reader->GetTensor(name, &tensor, status);
      if (!status->status.ok()) return nullptr;
      return tensorflow::TF_TensorFromTensor(*tensor, &status->status);
    }
    
    void TF_CheckpointReaderGetVariableShape(TF_CheckpointReader* reader,
                                             const char* name, int64_t* dims,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

        if (!src.IsInitialized() || src.NumElements() == 0) {
          c_outputs[i] =
              EmptyTensor(static_cast<TF_DataType>(src.dtype()), src.shape());
          continue;
        }
        c_outputs[i] = TF_TensorFromTensor(src, &status->status);
        if (!status->status.ok()) return;
      }
    }
    
    extern "C" {
    
    void TF_Run(TF_DeprecatedSession* s, const TF_Buffer* run_options,
                // Input tensors
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top