Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for Data (0.17 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

             << " at position " << pos << " with data size " << data.size();
          TF_SetStatus(status, TF_OUT_OF_RANGE, std::move(os).str().c_str());
          return total_bytes_transferred;
        }
        auto begin = data.begin();
        if (offset > pos) {
          // The block begins before the slice we're reading.
          begin += offset - pos;
        }
        auto end = data.end();
        if (pos + data.size() > offset + n) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/c/checkpoint_reader.cc

        var_to_shape_map_.swap(result.first);
        var_to_data_type_map_.swap(result.second);
      } else {
        reader_.reset(new TensorSliceReader(filename));
        if (!reader_->status().ok()) {
          tsl::Set_TF_Status_from_Status(status, reader_->status());
          return;
        }
        var_to_shape_map_.reset(
            new TensorSliceReader::VarToShapeMap(reader_->GetVariableToShapeMap()));
        var_to_data_type_map_.reset(new TensorSliceReader::VarToDataTypeMap(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_test.cc

      // Copy Tensor data into an array.
      float result_data[4] = {0};
      memcpy(&result_data[0], TF_TensorData(result_tensor),
             TF_TensorByteSize(result_tensor));
    
      int data_len = 4;  // length of result_data
      for (int i = 0; i < data_len; i++) {
        EXPECT_EQ(result_data[i], 0);
      }
    
      TF_DeleteTensor(result_tensor);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      char scratch[64 /* big enough for test_data and more_test_data */] = {0};
      StringPiece result;
      status = read_file->Read(0, test_data.size() + more_test_data.size(), &result,
                               scratch);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      EXPECT_EQ(test_data + more_test_data, result);
      EXPECT_EQ(
          read_file->Read(test_data.size(), more_test_data.size(), &result, scratch)
              .code(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_MonitoringStringGaugeCellSet(cell2, "str");
      auto* buf = new TF_Buffer;
      TFE_MonitoringStringGaugeCellValue(cell2, buf);
      string data(static_cast<const char*>(buf->data), buf->length);
      TF_DeleteBuffer(buf);
      EXPECT_EQ(data, "str");
      TFE_MonitoringDeleteStringGauge2(gauge2);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, MonitoringSampler0) {
      TF_Status* status = TF_NewStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  6. tensorflow/c/checkpoint_reader.h

      // tensor are combined into a single entry.
      const TensorSliceReader::VarToShapeMap& GetVariableToShapeMap() const;
    
      // Returns a map from variable names to their data types.  Slices of a
      // partitioned tensor are combined into a single entry.
      const TensorSliceReader::VarToDataTypeMap& GetVariableToDataTypeMap() const;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

        CompareTensors(out1, expected_out1);
      }
    
      void CompareTensors(TF_Tensor* a, TF_Tensor* b) {
        float* a_data = static_cast<float*>(TF_TensorData(a));
        float* b_data = static_cast<float*>(TF_TensorData(b));
        EXPECT_EQ(*a_data, *b_data);
      }
    
      void AddGradients(bool grad_inputs_provided, const char* prefix,
                        TF_Output* inputs, int ninputs, TF_Output* outputs,
    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)
  8. tensorflow/c/eager/dlpack_test.cc

                      dltensor_out->shape[i + 1] * dltensor_out->strides[i + 1]);
          }
        }
      }
      const float* data_in = static_cast<const float*>(dltensor_in->data);
      const float* data_out = static_cast<const float*>(dltensor_out->data);
      for (size_t j = 0; j < num_elements; ++j) {
        EXPECT_EQ(data_out[j], data_in[j]);
      }
    
      TFE_CallDLManagedTensorDeleter(dlm_out);
      TFE_DeleteTensorHandle(handle);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  9. .gitignore

    *.pbxproj
    *.xcworkspace
    /*.podspec
    /tensorflow/lite/**/coreml/**/BUILD
    /tensorflow/lite/**/ios/BUILD
    /tensorflow/lite/**/objc/BUILD
    /tensorflow/lite/**/swift/BUILD
    /tensorflow/lite/examples/ios/simple/data/*.tflite
    /tensorflow/lite/examples/ios/simple/data/*.txt
    Podfile.lock
    Pods
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 31 22:28:59 GMT 2024
    - 934 bytes
    - Viewed (0)
  10. tensorflow/c/eager/unified_api_testutil.h

    // Return a tensor handle with given type, values and dimensions.
    template <class T, TF_DataType datatype>
    Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data,
                                    const int64_t* dims, int num_dims,
                                    AbstractTensorHandle** tensor) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 4K bytes
    - Viewed (0)
Back to top