Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 453 for int64Opt (0.21 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      std::unordered_map<uint64_t, std::pair<int64_t, int64_t>> hashcode_to_pos;
      // Buffer data should be exported only once.
      assert(!buffer_data_exported_);
    
      auto it = buffer_data_map_.begin();
      while (it != buffer_data_map_.end()) {
        std::string buffer = it->second;
        int64_t index = it->first;
        int64_t offset = result.size();
        int64_t size = buffer.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo_test.cc

                             compilation_result.get());
    }
    
    TEST(LegalizeWithCombinedBridge, DoesNotUseMlirLowering) {
      CellReader<int64_t> mlir_bridge_legalize_count(kMlirLegalizeCount);
      CellReader<int64_t> counts(kBridgeStatusCounter);
    
      auto result = CompileMlirModule(kMlirModuleStr);
    
      ASSERT_THAT(result, IsOkOrFiltered());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        buf.push_back(i);
      }
      // The fetcher just fetches slices of the buffer.
      auto fetcher = [&buf](const string& filename, size_t offset, size_t n,
                            char* buffer, TF_Status* status) -> int64_t {
        int64_t bytes_transferred;
        if (offset < buf.size()) {
          size_t bytes_to_copy = std::min<size_t>(buf.size() - offset, n);
          memcpy(buffer, buf.data() + offset, bytes_to_copy);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:57 UTC 2021
    - 23.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

      DenseI64ArrayAttr PermuteI64ArrayAttr(
          PatternRewriter& rewriter,
          const std::optional<ArrayRef<int64_t>> array_attr,
          const ArrayRef<int64_t> permutation) const {
        if (!array_attr.has_value()) return DenseI64ArrayAttr(nullptr);
    
        return rewriter.getDenseI64ArrayAttr(
            Permute<int64_t>(array_attr.value(), permutation));
      }
    
      LogicalResult MatchMaxPoolReduceWindowOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental_test.cc

        TF_DeleteShapeAndTypeList(output_shapes);
      }
    
      absl::optional<std::vector<int64_t>> make_shape(
          std::vector<int64_t>&& dims) const {
        return absl::make_optional(dims);
      }
    
      absl::optional<std::vector<int64_t>> unknown_shape() const {
        return absl::nullopt;
      }
    
      static constexpr int64_t kUnknownDim =
          shape_inference::InferenceContext::kUnknownDim;
      TF_Status* status_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf_test.cc

      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(FunctionClusterTensorflowDialectTest, ClustersTfReplicatedBridge) {
      CellReader<int64_t> compilation_status(kCompilationStreamz);
    
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
      TF_EXPECT_OK(RunFunctionTf2xlaClusteringBridge(
          *mlir_module_, /*is_supported_by_replicated_brige*/ true,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      std::vector<int64_t> size_as_vector;
    };
    
    std::vector<int64_t> IntTensorAsVector(const Tensor& t) {
      DCHECK(t.dtype() == DT_INT32 || t.dtype() == DT_INT64);
      std::vector<int64_t> result;
      result.reserve(t.NumElements());
      for (int i = 0; i < t.NumElements(); i++) {
        int64_t element = t.dtype() == DT_INT32
                              ? static_cast<int64_t>(t.flat<int32>()(i))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/nn_grad_test.cc

      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    
      auto ReluGradModel = BuildGradModel(ReluModel, registry_);
    
      float X_vals[] = {1.0f, 2.0f, 3.0f, -5.0f, -4.0f, -3.0f, 2.0f, 10.0f, -1.0f};
      int64_t X_dims[] = {3, 3};
      AbstractTensorHandlePtr X;
      {
        AbstractTensorHandle* X_raw;
        status_ = TestTensorHandleWithDims<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), X_vals, X_dims, 2, &X_raw);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

                        value_vec[1].AsInt64(), llvm::ArrayRef<int64_t>(vec1),
                        value_vec[3].AsInt64(), value_vec[4].AsInt64(),
                        llvm::ArrayRef<int64_t>(vec2), value_vec[6].AsInt64(),
                        value_vec[7].AsInt64(), llvm::ArrayRef<int64_t>(vec3));
                auto named_attr =
                    builder->getNamedAttr(key, conv_dimension_numbers_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

          requested_read_length = INT32_MAX;
        else
          requested_read_length = n;
    
        // `pread` returns a `ssize_t` on POSIX, but due to interface being
        // cross-platform, return type of `Read` is `int64_t`.
        int64_t r = int64_t{pread(posix_file->fd, dst, requested_read_length,
                                  static_cast<off_t>(offset))};
        if (r > 0) {
          dst += r;
          offset += static_cast<uint64_t>(r);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top