Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 946 for vecotr (0.26 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/stablehlo_util.cc

    #include <algorithm>
    #include <string>
    #include <vector>
    
    #include "llvm/ADT/DenseSet.h"
    
    namespace mlir {
    namespace odml {
    
    std::vector<std::string> GetAcceptedStableHLODialects() {
      // It returns the default list of accepted dialects.
      std::vector<std::string> accepted_dialects({"stablehlo", "builtin", "func"});
      return accepted_dialects;
    }
    
    std::vector<std::string> GetAcceptedTFLiteDialects() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 21:06:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

    class CalibrationStatisticsSaverTest : public OpsTestBase {};
    
    TEST_F(CalibrationStatisticsSaverTest, MissingOutputPath) {
      std::vector<std::string> ids{"1"};
      std::vector<int32_t> calibration_methods{
          CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX};
    
      std::vector<NodeDefBuilder::NodeOut> inputs;
      inputs.emplace_back("min", 0, DT_FLOAT);
      inputs.emplace_back("max", 0, DT_FLOAT);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir_test.cc

      MlirToHloArgs mlir_to_hlo_args;
      mlir_to_hlo_args.mlir_module = module_str;
    
      std::vector<TensorShape> arg_shapes;
      TPUCompileMetadataProto metadata_proto;
      bool use_tuple_args = true;
      std::vector<ShardingAndIndex> arg_core_mapping;
      std::vector<std::vector<xla::Shape>> per_core_arg_shapes;
      std::vector<std::unique_ptr<mlir::Pass>> custom_legalization_passes;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. test/fixedbugs/bug027.go

    package main
    
    import "fmt"
    
    type Element interface {
    }
    
    type Vector struct {
    	nelem int
    	elem  []Element
    }
    
    func New() *Vector {
    	v := new(Vector)
    	v.nelem = 0
    	v.elem = make([]Element, 10)
    	return v
    }
    
    func (v *Vector) At(i int) Element {
    	return v.elem[i]
    }
    
    func (v *Vector) Insert(e Element) {
    	v.elem[v.nelem] = e
    	v.nelem++
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/low_bit_utils.h

    // Assumes `src_buffer` contains 2 4-bit elements packed in 8-bit.
    // Returns a vector where each int8 element contains a int4 sign-extended value.
    std::vector<char> UnpackDenseInt4IntoInt8(
        const std::vector<uint8_t>& src_buffer, int64_t num_elements);
    }  // namespace tflite
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 12 20:13:51 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.cc

        bool use_tuple_args, XlaCompiler::CompilationResult* compilation_result,
        std::vector<std::unique_ptr<mlir::Pass>>& custom_legalization_passes,
        const std::vector<TensorShape>& arg_shapes,
        std::vector<ShardingAndIndex>* arg_core_mapping,
        std::vector<std::vector<xla::Shape>>* per_core_arg_shapes) {
      LOG_FIRST_N(INFO, 1)
          << "Compiling MLIR computation to XLA HLO using MLIR tf2xla bridge in "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_launch_util_test.cc

      // XlaCompiler::CompilationResult that was used to build the executable.
      absl::StatusOr<std::vector<std::unique_ptr<xla::PjRtBuffer>>> RunExecutable(
          const std::vector<const Tensor*>& inputs,
          const std::vector<VariableInfo>& variables,
          const XlaCompiler::CompilationResult* result,
          xla::PjRtLoadedExecutable* executable) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

      *deviceMgrPtr = device_mgr_.get();
      return absl::OkStatus();
    }
    
    Status FakeSession::Run(
        const std::vector<std::pair<std::string, Tensor>>& inputs,
        const std::vector<std::string>& output_names,
        const std::vector<std::string>& target_nodes,
        std::vector<Tensor>* outputs) {
      tensorflow::RunMetadata run_metadata;
      return Run(tensorflow::RunOptions(), inputs, output_names, target_nodes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/resource_operation_safety_analysis_test.cc

    }
    
    Node* MakeNeutral(const Scope& scope, const string& id) {
      return ops::Const(scope.WithOpName("Const" + id), 42.0f).node();
    }
    
    Status ComputeIncompatiblePairs(Graph* g,
                                    std::vector<std::pair<int, int>>* result) {
      FixupSourceAndSinkEdges(g);
      return ComputeIncompatibleResourceOperationPairs(*g, &g->flib_def(), {},
                                                       result);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 28 16:53:59 UTC 2020
    - 18.7K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/gradients.h

    Status AddSymbolicGradients(const Scope& scope,
                                const std::vector<Output>& outputs,
                                const std::vector<Output>& inputs,
                                const std::vector<Output>& grad_inputs,
                                std::vector<Output>* grad_outputs);
    
    // Same as above, but uses 'OnesLike' for all shapes in
    // 'outputs' as grad_inputs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:45:03 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top