Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 202 for pushBack (0.21 sec)

  1. test/typeparam/list2.go

    	var l _List[int]
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertBefore(1, new(_Element[int]))
    	checkList(&l, []interface{}{1, 2, 3})
    }
    
    // Test that a list l is not modified when calling InsertAfter with a mark that is not an element of l.
    func TestInsertAfterUnknownMark() {
    	var l _List[int]
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertAfter(1, new(_Element[int]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/array_grad.cc

                                       std::vector<Output>* grad_outputs) {
      grad_outputs->push_back(Identity(scope, grad_inputs[0]));
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    REGISTER_GRADIENT_OP("QuantizeAndDequantizeV3", QuantizeAndDequantizeV3Grad);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/nn_grad.cc

                    epsilon, data_format, is_training));
            grad_outputs->push_back(grad.x_backprop);
            grad_outputs->push_back(grad.scale_backprop);
            grad_outputs->push_back(grad.offset_backprop);
            grad_outputs->push_back(NoGradient());
            grad_outputs->push_back(NoGradient());
            return scope.status();
          },
          grad_outputs);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 23:34:33 UTC 2022
    - 24.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

              for (size_t i = 0; i < vector.size(); i++) {
                vec.push_back(vector[i].AsInt64());
              }
              std::vector<int64_t> shape;
              if (std::string{key} == "padding") {
                shape.push_back(vec.size() / 2);
                shape.push_back(2);
              } else {
                shape.push_back(vec.size());
              }
              Attribute value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

      SmallVector<Type, 4> while_input_types;
      while_input_values.push_back(const_true.getResult());
      while_input_types.push_back(const_true.getResult().getType());
      for (int i = 1; i < reduce_dataset.getNumOperands(); ++i) {
        while_input_values.push_back(reduce_dataset.getOperand(i));
        while_input_types.push_back(reduce_dataset.getOperand(i).getType());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

        }
      }
      attrs.push_back(rewriter.getNamedAttr("lhs_quantization_axis",
                                            activation_quantization_axis));
      attrs.push_back(rewriter.getNamedAttr("rhs_quantization_axis",
                                            activation_quantization_axis));
      attrs.push_back(rewriter.getNamedAttr("output_quantization_axis",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc

        // Treats empty input shape as scalar
        if (dim_str.empty()) continue;
        if (dim_str == "?") {
          dims.push_back(-1);
          continue;
        }
        int size;
        TF_RET_CHECK(absl::SimpleAtoi(dim_str, &size));
        dims.push_back(size);
      }
      return dims;
    }
    
    static Status HandleSubtype(absl::string_view subtype,
                                ArrayInfo::SubTypeInfo* result) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

        for (auto it = begin_if_op_iter; it != std::next(current_last_if_op_iter);
             ++it) {
          sub_if_group.push_back(*it);
        }
        it_merged.first->getSecond().push_back(sub_if_group);
        it_moved.first->getSecond().push_back(
            GetMoveOpList(sub_if_group, side_effect_analysis));
        begin_if_op_iter = std::next(current_last_if_op_iter);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/utils.h

      if (matchPattern(permutation1, m_Constant(&perm1_const))) {
        for (int32_t idx = 0; idx < perm1_const.getNumElements(); ++idx) {
          initial_permutation.push_back(idx);
        }
        for (auto perm : perm2_const.getValues<APInt>()) {
          new_permutation.push_back(
              initial_permutation[perm1_const
                                      .getValues<APInt>()[perm.getSExtValue()]
                                      .getSExtValue()]);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        (*arguments_to_erase)[call].push_back(argument_index);
        if (auto func = dyn_cast<func::FuncOp>(call.resolveCallable())) {
          (*arguments_to_erase)[func].push_back(argument_index);
          work_list->push_back(std::make_pair(&func.getRegion(), argument_index));
        }
      } else if (auto if_op = dyn_cast<TF::IfOp>(user_op)) {
        (*arguments_to_erase)[if_op].push_back(argument_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top