Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 194 for pushBack (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

        if (rhs_batch_idx.contains(i)) {
          if (rhs_only_batch) {
            rhs_eq.push_back(c);
            lhs_batch_dims.push_back(c);
            c++;
          } else {
            rhs_eq.push_back(lhs_batch_dims[batch_trace_idx]);
            batch_trace_idx++;
          }
        } else if (rhs_contract_idx.contains(i)) {
          absl::StrAppend(&rhs_eq,
                          std::string(1, lhs_contract_dims[contract_trace_idx]));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

              rmax = std::max(std::abs(rmin), std::abs(rmax));
              rmin = -rmax;
            }
            TensorRangeSanityCheck(op, rmin, rmax);
            mins.push_back(rmin);
            maxs.push_back(rmax);
          }
          quant_type = quantfork::fakeQuantAttrsToType(
              op.getLoc(), num_bits, *op.getAxis(), mins, maxs, narrow_range,
              expressed, is_signed);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/decompose.cc

                  op->getLoc(), unconstrainted_tensor_type, op->getOperand(i));
              variadic_operands.push_back(casted);
            }
            auto build_list_op = builder.create<BuildListOp>(
                op->getLoc(), list_type, variadic_operands);
            new_operands.push_back(build_list_op.getOut());
          } else {
            auto attr_name = compose_func.getArgAttrOfType<StringAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        result_types.push_back(op->getOpResult(2).getType());
    
        // Populate attributes.
        SmallVector<NamedAttribute, 4> attributes;
        // Activation will always be tanh.
        attributes.push_back(rewriter.getNamedAttr("fused_activation_function",
                                                   rewriter.getStringAttr("TANH")));
        // cell_clip.
        attributes.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

      std::vector<std::string> disabled_checks;
      for (auto attr : op.getDisabledChecks().getAsRange<StringAttr>()) {
        disabled_checks.push_back(attr.getValue().str());
      }
      std::vector<std::string> platforms;
      for (auto attr : op.getPlatforms().getAsRange<StringAttr>()) {
        platforms.push_back(attr.getValue().str());
      }
      TF_ASSIGN_OR_RETURN(
          auto loader,
          tensorflow::XlaCallModuleLoader::Create(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

      } else {
        SmallVector<double> scales_vec;
        SmallVector<int64_t> zero_points_vec;
        for (auto elem : scales.getValues<float>()) scales_vec.push_back(elem);
        for (auto elem : zero_points.getValues<int32_t>())
          zero_points_vec.push_back(elem);
        elem_ty = quant::UniformQuantizedPerAxisType::get(
            flags, storage_type, expressed_type, scales_vec, zero_points_vec,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

                          arg_locs);
      SmallVector<NamedAttribute> func_attrs;
      func_attrs.push_back(
          {StringAttr::get(context, "inputs"),
           StringAttr::get(context, absl::StrJoin(input_names, ","))});
      func_attrs.push_back(
          {StringAttr::get(context, "outputs"),
           StringAttr::get(context, absl::StrJoin(output_names, ","))});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

        return split.emitOpError("different split lengths are not supported");
      }
      llvm::SmallVector<int64_t, 8> elem_shape;
      elem_shape.push_back(length);
      for (int64_t dim : buffer_type.getShape().drop_front()) {
        elem_shape.push_back(dim);
      }
      *elem_type = RankedTensorType::get(elem_shape, buffer_type.getElementType());
      return success();
    }
    
    // Tries to infer the tensor array element shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  9. tensorflow/cc/gradients/array_grad_test.cc

    }
    
    TEST_F(ArrayGradTest, ConcatV2Grad) {
      TensorShape shape({3, 2, 5});
      std::vector<Output> xs;
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      auto axis = Const(scope_, 0);
      auto y = Concat(scope_, xs, axis);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        components.reserve(underlying_devices_.size());
        for (int j = 0; j < underlying_devices_.size(); ++j) {
          components.push_back(std::move(per_device_output_tensors[j][i]));
        }
        if (expected_output_shapes[i].IsFullyDefined()) {
          per_device_outputs.push_back(ParallelTensor::FromTensorHandles(
              *this, std::move(components),
              absl::Span<const int64_t>(expected_output_shapes[i].dim_sizes()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 07:47:20 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top