Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for initial_val (0.36 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    //===----------------------------------------------------------------------===//
    
    
    class LowerInitializationOp<Op FromOp, int initial_val>
      : Pat<(FromOp:$src_op
             TensorOf<[AnyInteger, AnyFloat, AnyComplex]>:$input),
            (TF_BroadcastToOp (TF_ConstOp (GetScalarOfType<initial_val> $input)),
                              (CreateTFShapeOp $src_op, $input,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

        // This might be of a different type, but we'll do a Cast later.
        return existing;
      }
    
      Attribute initial_value = GetInitialValue(source);
      if (!initial_value) {
        initial_value = builder.getZeroAttr(type);
        if (!initial_value) {
          initial_value = builder.getArrayAttr({});
        }
      }
    
      if (!type) return nullptr;
    
      auto globalOp = builder.create<ml_program::GlobalOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

        } else {
          return globalTensor.emitError()
                 << "Multiple exported names for global tensor not supported yet";
        }
        Attribute initial_value;
        if (globalTensor.getValue()) {
          initial_value = *globalTensor.getValue();
        } else {
          initial_value = mlir::Attribute();
        }
        opToName[globalTensor] = name;
        auto variableOp = globalBuilder.create<ml_program::GlobalOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/internal/fuzz/worker_test.go

    	if err != nil {
    		b.Fatalf("failed to create temporary shared memory file: %s", err)
    	}
    	defer func() {
    		if err := mem.Close(); err != nil {
    			b.Error(err)
    		}
    	}()
    
    	initialVal := []any{make([]byte, 32)}
    	encodedVals := marshalCorpusFile(initialVal...)
    	mem.setValue(encodedVals)
    
    	ws.memMu <- mem
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		ws.m = newMutator()
    		mem.setValue(encodedVals)
    		mem.header().count = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/saved_model.pbtxt

            }
            is_stateful: true
          }
        }
        tags: "serve"
        tensorflow_version: "1.1.0-rc2"
        tensorflow_git_version: "unknown"
      }
      graph_def {
        node {
          name: "a/initial_value"
          op: "Const"
          attr {
            key: "_output_shapes"
            value {
              list {
                shape {
                }
              }
            }
          }
          attr {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:10:27 UTC 2017
    - 46.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/target.pbtxt

    # Generated in Python via
    # ```
    # import tensorflow as tf
    #
    # with tf.compat.v1.Graph().as_default() as g:
    #   var = tf.Variable(2.0)
    #   var_add = var.assign_add(3.0)
    # ```
    
    node {
      name: "Variable/initial_value"
      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 4.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/multi-output-feeds.pbtxt

        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
            }
            float_val: 4.0
          }
        }
      }
    }
    node {
      name: "var/initial_value"
      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

                                                    initial_value_cpu.get()};
        TensorHandlePtr initial_value =
            CreatePerDeviceValues(context, components, device_name, status.get());
        variable->Assign(context, initial_value.get(), status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 15:44:44 UTC 2021
    - 12.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/deadness_analysis_test.cc

                                             const string& frame_name,
                                             const Output& initial_value) {
      Output enter_initial_value = ops::internal::Enter(
          root.WithOpName(prefix + "/enter"), initial_value, frame_name);
    
      ops::Merge iv(root.WithOpName(prefix + "/iv"),
                    {enter_initial_value, enter_initial_value});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GradleResolveVisitor.java

                    visitAnnotations(para);
                    if (para.hasInitialExpression()) {
                        Object initialVal = para.getInitialExpression();
                        if (initialVal instanceof Expression) {
                            para.setInitialExpression(transform((Expression) initialVal));
                        }
                    }
                    visitAnnotations(para);
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top