Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 107 for pushBack (0.46 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc

      EXPECT_THAT(pre_calibration_result, IsOk());
    
      SmallVector<func::FuncOp> func_ops;
      for (auto func_op : pre_calibration_result->getOps<func::FuncOp>()) {
        func_ops.push_back(func_op);
      }
      ASSERT_THAT(func_ops, SizeIs(2));
      EXPECT_THAT(func_ops, Contains(HasSymName("main")));
      EXPECT_THAT(func_ops, Contains(HasSymName("composite_dot_general_fn_1")));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

            auto dequantize_op = builder->create<TFL::DequantizeOp>(
                op->getLoc(), dequantized_input_type, input.get());
            dequantized_inputs.push_back(dequantize_op);
          } else {
            dequantized_inputs.push_back(input.get());
          }
        }
    
        // Result types.
        SmallVector<Type, 4> result_types;
        for (auto result_type : op->getResultTypes()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

        // each entry function. The one exception are initializer functions, which
        // have `tf_saved_model.initializer_type` instead.
        if (IsEntryFunction(func)) {
          entry_funcs.push_back(func);
        }
      });
      return entry_funcs;
    }
    
    LogicalResult GetCallees(SymbolUserOpInterface op, SymbolTable &symtab,
                             llvm::SmallVector<func::FuncOp> &callees) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc

        if (std::fabs(rmax - rmin) < std::numeric_limits<double>::epsilon()) {
          scales.push_back(1.0);
          zeroPoints.push_back(qmin);
          continue;
        }
    
        double scale;
        int64_t nudgedZeroPoint;
        getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint);
        scales.push_back(scale);
        zeroPoints.push_back(nudgedZeroPoint);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        SmallVector<int64_t, 4> non_unit_dims;
    
        for (int i = 0; i < input_shape_extended.size(); i++) {
          int64_t dim = broadcast_shape[i];
          if (dim != 1) {
            non_unit_dims.push_back(dim);
            input_carryover_dims.push_back(input_shape_extended[i]);
          }
        }
    
        // If the reshape rank is less than the number of non-unit dimensions
        // of the broadcast, then the reshape collapses non-unit dimensions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/ops/gen/cpp/renderers/op_renderer.cc

        if (context_.mode == RendererContext::kHeader) {
          absl::StrAppend(&text, argument.Initializer());
        }
        if (argument.HasDefaultValue()) {
          args_with_default_val.push_back(text);
        } else {
          args_without_default_val.push_back(text);
        }
      }
      std::vector<string> arguments;
      arguments.reserve(args_without_default_val.size() +
                        args_with_default_val.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/sparsity/sparsify_model_test.cc

          std::vector<uint8_t>(expected_value.begin(), expected_value.end());
      input_model.buffers.push_back(std::move(model_metadata_buffer));
      auto metadata_t = std::make_unique<tflite::MetadataT>();
      metadata_t->name = tflite::optimize::kTfLiteReducedPrecisionKey;
      metadata_t->buffer = input_model.buffers.size() - 1;
      input_model.metadata.push_back(std::move(metadata_t));
    
      // Sparsify and create output model
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:16:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/schema/flatbuffer_compatibility_test.cc

                   const std::string &contents) {
      std::vector<const char *> include_directories;
      auto local_include_directory = flatbuffers::StripFileName(filename);
      include_directories.push_back(local_include_directory.c_str());
      include_directories.push_back(nullptr);
      if (!parser->Parse(contents.c_str(), include_directories.data(),
                         filename.c_str())) {
        fprintf(stderr, "Failed to parse flatbuffer schema '%s'\n",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 14:28:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

            values_for_results.push_back(output);
          }
        }
      }
      return values_for_results;
    }
    
    // Compute signature for raised func from arugments and outputs of
    // Operation partition.
    llvm::SmallVector<Type> TypesFromValues(
        const llvm::SmallVector<Value>& values) {
      llvm::SmallVector<Type> types;
      for (auto value : values) {
        types.push_back(value.getType());
      }
      return types;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/test_util.cc

        TF_RET_CHECK(sit != shape_info.end())
            << "Missing shape information for node " << node->name();
        std::vector<PartialTensorShape> shapes;
        for (const auto& output : sit->second) shapes.push_back(output.shape);
    
        auto it = expected_shapes.find(node->name());
        if (it != expected_shapes.end()) {
          if (!PartialTensorShapeUtils::AreIdentical(shapes, it->second)) {
            return errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top