Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 453 for int64Opt (0.2 sec)

  1. tensorflow/c/eager/c_api_experimental_reader.cc

    template <typename... LabelType>
    int64_t TFE_MonitoringCounterReader::Read(const LabelType&... labels) {
      return counter->Read(labels...);
    }
    
    TFE_MonitoringCounterReader* TFE_MonitoringNewCounterReader(const char* name) {
      auto* result = new TFE_MonitoringCounterReader(name);
    
      return result;
    }
    
    int64_t TFE_MonitoringReadCounter0(TFE_MonitoringCounterReader* cell_reader) {
      int64_t result = cell_reader->Read();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 20 03:14:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h

      // `auto_control_deps.py` where it is assumed that allocated resource values
      // NEVER alias. We should align our assumptions in the future.
      static constexpr int64_t kUnknownResourceId = -1;
      static constexpr int64_t kInvalidResourceId = -2;
      static constexpr int64_t kMaxResourceTypeId = 9999;
    };
    
    }  // namespace detail
    
    // An analysis that runs on a module and maps each resource-type value to a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
      Status SetAttrShape(const char* attr_name, const int64_t* dims,
                          const int num_dims) override {
        PartialTensorShape shape;
        if (num_dims >= 0) {
          shape = PartialTensorShape(ArraySlice<int64_t>(
              reinterpret_cast<const int64_t*>(dims), num_dims));
        }
        op_->node_builder.Attr(attr_name, shape);
        return absl::OkStatus();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size_test.cc

      EXPECT_THAT(num_bytes, Eq(16));
    }
    
    TEST_F(GetSizeInBytesTest, Bfloat16ConstOpSizeInBytes) {
      constexpr absl::string_view kConstOpExpr = R"mlir(
        %cst = "tf.Const"() {value = dense<1.0> : tensor<7xbf16>} : () -> tensor<7xbf16>
      )mlir";
    
      Block block{};
      TF::ConstOp int_tensor_const_op = ParseConstOp(kConstOpExpr, block, ctx_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h

          // back the result to get the same shape as the original operand.
    
          SmallVector<int64_t, 4> permutation_array;
          for (int64_t i = 0; i < scatter_dims_to_operand_dims.size(); ++i) {
            permutation_array.push_back(scatter_dims_to_operand_dims[i]);
          }
          for (int64_t i = 0; i < operand_type.getRank(); ++i) {
            if (!llvm::is_contained(scatter_dims_to_operand_dims, i)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental_reader_test.cc

    TFE_MonitoringCounter1* CreateCounter1(const char* counter_name,
                                           const char* label);
    void IncrementCounter0(TFE_MonitoringCounter0* counter, int64_t delta = 1);
    void IncrementCounter1(TFE_MonitoringCounter1* counter, const char* label,
                           int64_t delta = 1);
    
    TEST(CAPI, MonitoringCellReader0) {
      auto counter_name = "test/counter0";
      auto* counter = CreateCounter0(counter_name);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 20 03:14:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

          %4 = mhlo.multiply %3, %3 : tensor<?xi32>
          return %4 : tensor<?xi32>
        }
      })";
      CellReader<int64_t> legal_error(kFailedLegalizationStreamz);
      CellReader<int64_t> static_error(kNonStaticOpStreamz);
      CreateModule(kNonStaticFailure);
    
      auto result = Run();
    
      EXPECT_TRUE(result.failed());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/tfe_monitoring_reader_internal.h

      explicit TFE_MonitoringCounterReader(const char* name) {
        counter = std::make_unique<
            ::tensorflow::monitoring::testing::CellReader<int64_t>>(name);
      }
      template <typename... LabelType>
      int64_t Read(const LabelType&... labels);
      std::unique_ptr<::tensorflow::monitoring::testing::CellReader<int64_t>>
          counter;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 20 03:14:47 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/device_compilation_profiler.h

      struct ClusterCompileStats {
        // Number of times the cluster has been (re-)compiled.
        int64_t compile_count = 0;
    
        // The number of times this cluster has been executed.
        int64_t execution_count = 0;
    
        // Cumulative time spent compiling the cluster.
        int64_t cumulative_compile_time_us = 0;
    
        // True if we have decided that this cluster is too dynamic (i.e. its shapes
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc

        const DenseIntElementsAttr& dense_attr, PatternRewriter& builder) {
      std::vector<int32_t> ret(dense_attr.getNumElements());
      auto range = dense_attr.getValues<int64_t>();
      std::transform(range.begin(), range.end(), ret.begin(),
                     [](int64_t attr) { return static_cast<int32_t>(attr); });
      return DenseIntElementsAttr::get(
          RankedTensorType::get(ret.size(), builder.getIntegerType(32)), ret);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top