HomeSort by relevance Sort by last modified time
    Searched defs:Const (Results 1 - 25 of 105) sorted by null

1 2 3 4 5

  /external/tensorflow/tensorflow/go/op/
op.go 32 // Const adds an operation to graph that produces value as output.
33 func Const(scope *Scope, value interface{}) (output tf.Output) {
41 scope.UpdateErr("Const", err)
46 Type: "Const",
  /external/clang/test/SemaTemplate/
alias-church-numerals.cpp 29 template<typename T, T N> struct Const { static const T value = N; };
31 template<typename T, T N> struct IncrementHelper<Const<T, N>> { using Result = Const<T, N+1>; };
34 using Arr = int[TwoHundredAndFiftySix<Increment, Const<int, 0>>::value];
deduction.cpp 6 static const unsigned value = 0;
11 static const unsigned value = 1;
21 static const bool value = false;
26 static const bool value = true;
55 struct Replace<const T, Arg1, Arg2> {
56 typedef typename Replace<T, Arg1, Arg2>::type const type;
80 int array1[is_same<Replace<const _1, int, float>::type, const int>::value? 1 : -1];
82 int array3[is_same<Replace<vector<const _1>, int, float>::type, vector<const int> >::value? 1 : -1]
    [all...]
  /external/tensorflow/tensorflow/go/
util_test.go 30 func Const(g *Graph, name string, value interface{}) (Output, error) {
39 Type: "Const",
  /external/jacoco/org.jacoco.examples/build/src/main/java/org/jacoco/examples/expressions/
Const.java 14 public class Const implements IExpression {
18 public Const(final double value) {
  /external/tensorflow/tensorflow/cc/ops/
const_op.h 26 /// @defgroup const_op Const Op
29 Output Const(const Scope& scope, const Input::Initializer& val);
31 Output ConstFromProto(const Scope& scope, const TensorProto& proto);
33 NodeBuilder::NodeOut AsNodeOut(const Scope& scope, const Input& inp);
36 Output Const(const Scope& scope, const Input::Initializer& val)
    [all...]
const_op.cc 24 Output ConstHelper(const Scope& scope, const T& value, DataType dtype) {
29 const string unique_name = scope.GetUniqueNameForOp("Const");
30 auto builder = NodeBuilder(unique_name, "Const")
44 Output Const(const Scope& scope, const Input::Initializer& val) {
52 Output ConstFromProto(const Scope& scope, const TensorProto& proto)
    [all...]
  /external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/
p2.cpp 6 struct Const {
7 Const(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move constructor may not be const}}
8 Const& operator=(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move assignment operator may not be const}}
21 const AssignmentRet2& operator=(AssignmentRet2&&) = default; // expected-error {{explicitly-defaulted mo (…)
    [all...]
  /build/soong/androidmk/parser/
make_strings.go 115 func (ms *MakeString) Const() bool {
  /external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/
ast.py 117 class Const(Definition):
118 """Represents a const definition."""
126 super(Const, self).__init__(name, **kwargs)
131 return super(Const, self).__eq__(other) and \
240 _list_item_type = (Const, Enum, Method)
370 _list_item_type = (Const, Enum, StructField)
  /external/llvm/lib/CodeGen/SelectionDAG/
SDNodeDbgValue.h 34 CONST = 1, // value is a constant
43 const Value *Const; // valid for constants
67 SDDbgValue(MDNode *Var, MDNode *Expr, const Value *C, uint64_t off,
71 kind = CONST;
72 u.Const = C;
85 DbgValueKind getKind() const { return kind; }
88 MDNode *getVariable() const { return Var; }
91 MDNode *getExpression() const { return Expr; }
94 SDNode *getSDNode() const { assert (kind==SDNODE); return u.s.Node;
    [all...]
  /external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
SDNodeDbgValue.h 34 CONST = 1, // value is a constant
44 const Value *Const; // valid for constants
63 SDDbgValue(MDNode *mdP, const Value *C, uint64_t off, DebugLoc dl,
66 kind = CONST;
67 u.Const = C;
90 const Value *getConst() { assert (kind==CONST); return u.Const; }
  /external/turbine/java/com/google/turbine/model/
Const.java 25 public abstract class Const {
39 /** Subtypes of {@link Const} for primitive and String literals. */
40 public abstract static class Value extends Const {
585 public static class ArrayInitValue extends Const {
587 private final ImmutableList<Const> elements;
589 public ArrayInitValue(ImmutableList<Const> elements) {
598 public ImmutableList<Const> elements() {
  /external/llvm/lib/Target/SystemZ/
SystemZTDC.cpp 124 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1));
127 if (!Const)
134 // Check if Const is one of our recognized consts.
136 if (Const->isZero()) {
139 } else if (Const->isInfinity()) {
141 WhichConst = Const->isNegative() ? 2 : 1;
142 } else if (Const->isExactlyValue(Smallest)) {
148 } else if (Const->isExactlyValue(NegSmallest)) {
159 static const int Masks[][4] = {
234 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1))
    [all...]
  /external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/
ScopeTest.java 129 Const<Integer> c1 = Const.create(s, 42);
130 assertEquals("Const", c1.output().op().name());
131 Const<Integer> c2 = Const.create(s, 7);
133 Const<Integer> c3 = Const.create(s.withName("four"), 4);
135 Const<Integer> c4 = Const.create(s.withName("four"), 4);
145 assertEquals("child/Const", Const.create(child, 42).output().op().name())
    [all...]
  /prebuilts/go/darwin-x86/src/go/types/
object.go 139 // A Const represents a declared constant.
140 type Const struct {
148 func NewConst(pos token.Pos, pkg *Package, name string, typ Type, val constant.Value) *Const {
149 return &Const{object{nil, pos, pkg, name, typ, 0, token.NoPos}, val, false}
152 func (obj *Const) Val() constant.Value { return obj.val }
153 func (*Const) isDependency() {} // a constant may be a dependency of an initialization expression
301 case *Const:
302 buf.WriteString("const")
395 func (obj *Const) String() string { return ObjectString(obj, nil) }
  /prebuilts/go/darwin-x86/test/
const1.go 16 const (
21 Const = 103
40 a8 = Int8 * Const / 100 // ERROR "overflow"
41 a9 = Int8 * (Const / 100) // OK
80 f(Const) // OK
90 const ptr = nil // ERROR "const.*nil"
91 const _ = string([]byte(nil)) // ERROR "is not a? ?constant"
92 const _ = uintptr(unsafe.Pointer((*int)(nil))) // ERROR "is not a? ?constant"
93 const _ = unsafe.Pointer((*int)(nil)) // ERROR "cannot be nil|invalid constant type
    [all...]
  /prebuilts/go/linux-x86/src/go/types/
object.go 139 // A Const represents a declared constant.
140 type Const struct {
148 func NewConst(pos token.Pos, pkg *Package, name string, typ Type, val constant.Value) *Const {
149 return &Const{object{nil, pos, pkg, name, typ, 0, token.NoPos}, val, false}
152 func (obj *Const) Val() constant.Value { return obj.val }
153 func (*Const) isDependency() {} // a constant may be a dependency of an initialization expression
301 case *Const:
302 buf.WriteString("const")
395 func (obj *Const) String() string { return ObjectString(obj, nil) }
  /prebuilts/go/linux-x86/test/
const1.go 16 const (
21 Const = 103
40 a8 = Int8 * Const / 100 // ERROR "overflow"
41 a9 = Int8 * (Const / 100) // OK
80 f(Const) // OK
90 const ptr = nil // ERROR "const.*nil"
91 const _ = string([]byte(nil)) // ERROR "is not a? ?constant"
92 const _ = uintptr(unsafe.Pointer((*int)(nil))) // ERROR "is not a? ?constant"
93 const _ = unsafe.Pointer((*int)(nil)) // ERROR "cannot be nil|invalid constant type
    [all...]
  /external/tensorflow/tensorflow/c/
c_test_util.cc 37 TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values) {
48 TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims,
49 const int32_t* values) {
60 TF_Tensor* Int32Tensor(const std::vector<int32_t>& values) {
66 const int num_bytes = sizeof(int32_t);
74 const int num_bytes = sizeof(double);
84 void PlaceholderHelper(TF_Graph* graph, TF_Status* s, const char* name,
93 TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s, const char* name) {
99 void ConstHelper(TF_Tensor* t, TF_Graph* graph, TF_Status* s, const char* name
    [all...]
  /external/tensorflow/tensorflow/core/framework/
function.h 76 // If T is a string type (const char*, string, or StringPiece), and
98 const string& name,
100 static AttrValueWrapper FunctionRef(const string& name) {
116 NodeDef ToNodeDef() const;
122 static FunctionDef Create(const string& function_name,
131 static FunctionDef Define(const string& function_name,
145 static Node Const(const string& name, const T& val) {
146 Node n = {{name}, "Const"};
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
ast.py 360 class Const(Node):
372 return "Const(%s)" % (repr(self.value),)
    [all...]
  /external/clang/test/CodeGenCXX/
microsoft-abi-member-pointers.cpp 122 namespace Const {
128 // CHECK: @"\01?s_f_mp@Const@@3P8Single@@AEXXZQ2@" =
130 // CHECK: @"\01?m_f_mp@Const@@3P8Multiple@@AEXXZQ2@" =
132 // CHECK: @"\01?v_f_mp@Const@@3P8Virtual@@AEXXZQ2@" =
134 // CHECK: @"\01?u_f_mp@Const@@3P8Unspecified@@AEXXZQ2@" =
136 // CHECK: @"\01?us_f_mp@Const@@3P8UnspecSingle@@AEXXZQ2@" =
701 void use(void (Child::*const &)());
  /external/libmojo/third_party/jinja2/
nodes.py 430 class Const(Literal):
443 """Return a const object if the value is representable as
679 def const(obj): function in function:Slice.as_const
683 return slice(const(self.start), const(self.stop), const(self.step))
898 EvalContextModifier(options=[Keyword('autoescape', Const(True))])
  /external/llvm/lib/Analysis/
MemoryBuiltins.cpp 53 static const std::pair<LibFunc::Func, AllocFnsTy> AllocationFnData[] = {
81 static Function *getCalledFunction(const Value *V, bool LookThroughBitCast) {
101 static Optional<AllocFnsTy> getAllocationData(const Value *V, AllocType AllocTy,
102 const TargetLibraryInfo *TLI,
108 const Function *Callee = getCalledFunction(V, LookThroughBitCast);
137 const auto *Iter =
139 [TLIFn](const std::pair<LibFunc::Func, AllocFnsTy> &P) {
146 const AllocFnsTy *FnData = &Iter->second;
167 static bool hasNoAliasAttr(const Value *V, bool LookThroughBitCast) {
176 bool llvm::isAllocationFn(const Value *V, const TargetLibraryInfo *TLI
    [all...]

Completed in 646 milliseconds

1 2 3 4 5